Vendor MindTouch
Type Extension
Categories Developers
Requires MindTouch 1.9 or later
OS Restriction None
Status Stable
License Free/Open Source
SID (service id) sid://mindtouch.com/2008/01/mantis
Assembly mindtouch.deki.services

 

Table of Contents

Description

This extension contains functions for embeding bug information from Mantis bug tracker.

See also How to add an extension, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.

Configuration:

Before the Mantis service can be used, it must be configured.

Config Key Description
mantis-uri URI to your mantis installation. This URI + /api/soap/mantisconnect.php needs to exist
username A Mantis username that has view access to your projects of interest
password Password for the Mantis account

mantis.link(id : num) : xml

Embed a link to a Mantis bug report. A summary of the bug is shown when hovering over the link. The link is crossed out when the bug is closed or resolved.

Parameters:

Name Type Description
id int The bug number to link to

Samples:

   Output

A link to bug# 2084

{{ mantis.link(2084) }} 
closed bug.PNG

  


mantis.table(project : str, filter : str, count : num, page : num) : xml

Create a table listing of bugs for a given project

Parameters:

Name Type Description
project string optional. project name (default: default-project)
filter string optional. filter name (default: none)
count int optional. bugs per page (default: 25)
page int optional. page number (default: first page)

Samples:

   Output

Up to 100 bugs from project Deki Wiki returning from the filter 'Itasca (1.9.0) Changelog'

 {{ mantis.table("Deki Wiki", "Itasca (1.9.0) Changelog", 100) }}
mantis table.PNG

  


mantis.list(project : str, filter : str, count : num, page : num) : xml

Create a bulleted list of bugs for a given project

Parameters:

Name Type Description
project string optional. project name (default: default-project)
filter string optional. filter name (default: none)
count int optional. bugs per page (default: 25)
page int optional. page number (default: first page)

Samples:

   Output

Up to 100 bugs from project Deki Wiki returning from the filter 'Itasca (1.9.0) Changelog'

 {{ mantis.list("Deki Wiki", "Itasca (1.9.0) Changelog", 100) }}
mantis list.PNG

mantis.count(project : str, filter : str) : num

Get the number of bugs returned by a filter

Parameters:

Name Type Description
project string optional. project name (default: default-project)
filter string optional. filter name (default: non


Samples:

   Output

Number of bugs in project 'Deki Wiki' with the filter 'Itasca (1.9.0) Changelog'

 {{ mantis.count("Deki Wiki", "Itasca (1.9.0) Changelog") }}
101

  

Known issues

Bug#SummaryStatusOpened ByAssigned ToSeverity
#5708Mantis extension does not support subprojectsassignedMaxMbrianhminor
#3506Mantis extension: fixed paging and duplicate bugs appearingresolvedMaxMMaxMminor

Development log

RevisionDateAuthorMessage
r149366/25/2009 12:10:14 AMstevebDeki (trunk):

* MantisService: (bug 6685) Mantis: don't request more than 2 items per-request at a time
r148766/22/2009 7:40:04 PMstevebDeki (trunk):

* misc: replaced InvariantCulture with Ordinal for string comparisons
r126271/20/2009 5:42:55 PMstevebDeki (trunk):

* misc: updated and normalized all copyright notices
r97488/1/2008 10:41:58 PMstevebDeki (trunk):

DekiServices:

* updated service-type in service blueprint (passive attribute that's not yet used anyway)
r97277/31/2008 7:11:51 PMstevebDeki (trunk):

Services/Scripts`:

* iframe.xml: new script added

* updated all services/scripts to point their help URI to wiki.developer.mindtouch.com (instead of opengarden)
r88205/31/2008 4:07:18 PMstevebDeki Wiki (trunk):

* redist: updated redistributable files

* misc:

* updated all occurrences of 'MindTouch Deki Wiki' to 'MindTouch Deki'

* extended all copyright notices to 2008
r87635/29/2008 6:06:42 PMstevebDeki Wiki (trunk):

* misc: removed an extra space from the default copyright notice

Tools:

* DekiExt.php: added 'protocol' attribute to <uri> element

* GoogleAppEngine: added sample application
r81924/21/2008 5:13:40 AMstevebDekiWiki (trunk):

* updated DekiScript binary

* MISC: updated all relevant SIDs to new shorter format (e.g. sid://mindtouch.com/2006/11/dekiwiki) (NOTE: old SIDS are preserved for backwards compatibility)

* DekiXmlParser: evaluate attributes which have their value enclosed in double-curly braces
r76883/14/2008 8:37:52 PMmaximmDeki JiraService MantisService SubversionService TracService

* Updated div css classes
r75893/5/2008 8:38:32 PMmaximmDeki MantisService

* workaround for mantis's broken paging via the api
r74962/29/2008 12:44:35 AMmaximmDeki Extensions

Trac, Jira, Mantis, Subversion:

* Added links to documentation
r74952/29/2008 12:36:40 AMmaximmDeki Extensions: Jira, Mantis, Trac

Jira:

* Fixed jira.count to return a plain integer

Trac

* Fixed trac.count to return a plain integer

Mantis:

* Added mantis.count

* Added CSS styling and fixed tags

* Fixed duplicate bug listing issue (starting at page 1 instead of 0)

* Defaulted to top 20 bugs which is same as a batch size
r74402/27/2008 1:26:24 AMmaximmDeki Extensions: Mantis, Trac, Jira

* MantisService: using sorttable.js to sort the output

* TracService: Added Trac integration

* JiraService: Added Jira integration

Fixed Makefile (thx pete!)
r73972/25/2008 8:15:49 PMmaximmDeki extensions: MantisService and SubversionService

MantisService:

* Refactored to pass in output xdoc to inner functions to avoid Xdoc.Add calls

* BuildBugLink now used for table as well as link now. Displaying reporter and handler as the hover-over title

SubversionService:

* Initial implementation allows "svn log" like output.

* Revisions can optionally be linked to a web gui that display revision info (diffs, etc)

* Bug numbers in log messages can be linked to a web based bug tracker. Bug prefixes: bug, fixes, bugfix, #123
r73602/22/2008 8:19:15 AMstevebDeki Wiki (trunk):

DekiServices:

* MantisService:

* added missing code

* added missing documentation

* simplified variable names

* added proper reading of the "default-project" config setting

* fixed several bugs, especially in initialization of the service
r73592/22/2008 2:31:20 AMmaximmDeki Mantis extension

* Stripped existing css styles and moved them into standalone css file
r73582/22/2008 1:41:48 AMmaximmDeki Mantis extension

* Workaround for Mantis api bug where php runs out of memory by splitting up requests into batches and performing concurrent requests.

* Renamed features to: mantis.table, mantis.list
r72892/14/2008 10:32:35 PMmaximmDeki Api - Mantis extension

* First pass at Mantis bug tracker integration allows linking to and listing bugs on a given project/filter

Examples:

{{ mantis.buglink("2940") }}

{{ mantis.buglist("Deki Wiki", "mine") }}

DekiXmlParser: not overwriting the title attribute on links if one is already provided.

Tag page
Viewing 5 of 5 comments: view all
Is there some documentations to setting up Dream service and Mantis extesion ? Thanx
Posted 14:57, 6 Mar 2008
It seems that the account used needs to have reporter access or higher in Mantis to work properly.
Posted 15:10, 2 Jul 2008
Hello
I get the message :
/span, function 'Table' failed with response

Not supported Content-Type in the response: 'text/html'
Posted 14:32, 21 Aug 2008
If you are using lighttpd on your mantis install and are receiving http 417 errors, you need to see this bug. http://redmine.lighttpd.net/issues/show/1017
Posted 22:49, 7 Apr 2009
I got response: MindTouch.Deki.Script.DekiScriptInvokeException: function 'Count' failed ---> System.InvalidOperationException: Not supported Content-Type in the response: 'text/html'
On Count() function. But it's the same on all other.
This is on Mantis 1.1.1
Posted 15:56, 8 May 2009
Viewing 5 of 5 comments: view all
You must login to post a comment.