Jira Bug Reports

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

Install Extension
URL of your MindTouch install (ex: http://www.mindtouch.com)
    

 

Table of Contents

Description

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

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

Configuration:

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

Config Key Description
jira-uri URI to your jira installation. This URI + /rpc/soap/jirasoapservice-v2 needs to exist. Be sure that the RPC + SOAP plugin is enabled.
username A Jira username that has view access to your projects of interest
password Password for the Jira account

 


jira.link(id : num) : xml

Embed a link to a Jira 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

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

  


jira.table(filter : str) : xml

Create a table listing of bugs from a given predefined filter

Parameters:

Name Type Description
filter string filter name

Samples:

   Output

Bugs returned by the 'SVN Module tickets'

									{{ jira.table("SVN Module tickets") }}
jira table.PNG

  


jira.tablesearch(filter : str) : xml

Create a table listing of bugs from a full text search

Parameters:

Name Type Description
query string Search query

Samples:

   Output

Bugs returned by the search terms 'exception'

									{{ jira.tablesearch("exception") }}
jira table.PNG

jira.count(filter : str) : num

Get the number of bugs returned by a filter

Parameters:

Name Type Description
filter string filter name


Samples:

   Output

Number of bugs returned from the 'SVN Module tickets' filter

									{{ jira.count("SVN Module tickets") }}
101

  

Known issues

Bug#SummaryStatusOpened ByAssigned ToSeverity

Development log

RevisionDateAuthorMessage
r1745112/21/2009 6:20:32 PMarnecDeki (trunk): reviewed by SteveB

* new binaries

* renamed Co.Invoke back to Coroutine.Invoke
r1688511/13/2009 6:09:08 PMstevebDeki (trunk):

* updated binaries

* fixed breaking Dream changes
r1688111/13/2009 4:24:57 PMstevebDeki (trunk): Reviewed by ArneC

* updated binaries

* fixed breaking dream changes
r1659210/22/2009 3:46:17 AMstevebDeki (trunk): not-reviewed; only meta-data changes

* misc:

* changed all help uri starting with http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/ to http://developer.mindtouch.com/App_Catalog/

* changed all help uri starting with http://developer.mindtouch.com/Deki/Extensions/ to http://developer.mindtouch.com/App_Catalog/
r1659110/22/2009 3:29:54 AMstevebDeki (trunk): not-reviewed; no functional changes; only comments and meta-data

* misc:

* replaced all copyright chars with (c)

* made AssemblyInfo meta-data consistent

* added missing source code copyright notice to some files

* DekiScript: changed license from LGPL to Apache 2
r1645210/14/2009 1:07:18 PMstevebDeki (trunk): (part 2)

* changed Deki to Core in comments and description strings

* removed unused namespace declarations
r152287/19/2009 8:41:34 AMstevebDeki (trunk):

* misc:

* removed superfluous namespace declarations

* updated documentation URI to http://developer.mindtouch.com/Deki/
r148766/22/2009 7:40:04 PMstevebDeki (trunk):

* misc: replaced InvariantCulture with Ordinal for string comparisons
r132452/19/2009 11:21:24 PMstevebDeki (trunk):

* AdoDotNetService, DapperService, FeedService, JiraService, MySqlService, TracService, dhtml.xml: (bug 5717) Feed.Table doesn't have its own CSS
r126271/20/2009 5:42:55 PMstevebDeki (trunk):

* misc: updated and normalized all copyright notices
r103899/2/2008 8:33:44 PMmaximmDeki API - JiraService

* Prefixed Jira with Atlassian
r99368/12/2008 8:02:23 PMmaximmDeki Service - Jira

* If a filter name isn't found, the list is refetched while bypassing the cache

BUGFIX 4722: Jira Extension fails to find new filters

BUGFIX 4621: Jira extenion functions that use a filter do not work
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
r84895/9/2008 6:38:11 PMmaximmDeki Jira Service

* Added service config setting: jira-session-timeout-mins to force refreshing of session token after given length of time. (default 30)

BUGFIX 3615: Jira extension: time out error about 60 minutes after initial use
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
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
r74422/27/2008 1:55:55 AMmaximmadded missing file

Files 1

FileSizeDateAttached by 
 jira table.PNG
Example of table output from Jira
56.94 kB23:35, 28 Feb 2008MaxMActions
Viewing 12 of 12 comments: view all
I've managed to set up the configuration as you've stated but I keep getting an error. Here is what I get when I try to use jira.tablesearch

Function 'jira.tablesearch' failed with response
Error: NameResolutionFailure

Any ideas?
Thanks.
Posted 04:57, 16 Mar 2008
If you have issues with timeouts to your jira server, you can do the following:

Another work around. This is for all of you like me who have to keep your timeout. You can add an api call to crontab to refresh every 30 minutes to refresh the service via curl, as follows:

00,30 * * * * root curl -d @{Jira Service ID}.xml -H "Content-type: text/xml" --cookie authtoken="{Token ID}" http://{Wiki Address}/@api/deki/site/services/{Jira Service ID}

You can find your jira service id by typing "http://{Wiki Address}/@api/deki/site/services" in your browser, obviously replacing {Wiki Address} with your server address and look for Jira.

You can find your "{Token ID}" by looking at your cookies. There is a cookie called authtoken and you can use the id in that to authenticate.
Posted 16:45, 21 Mar 2008
Where do I put the Config keys ? where I configure the service ? or in the Configuration page ?
Posted 15:45, 3 Apr 2008
reisw: you probably need to add an entry into your hosts file on the dekiwiki VM (I assume this is what you are running) for the jira you are accessing

Try pinging the jira server using the name. If it can't find it, this is most likely your issuse.
Posted 16:40, 22 May 2008
In the table search is it only string based or can we also refine it. Something along the lines of {{jira.tableSearch("assignee:sameetn,status:open|re-oprened|in-progress)}}. That way I could add that to my page in the wiki and be able to see what I am working on
Posted 15:45, 16 Jun 2009
The published design differs from the behavior of this extension in 9.0.2.4. You can create multiple JIRA extensions, but only one is active. Thus, only the filters created by the user in the extension can be used. Basically, this means an admin should create all the JIRA extensions you need. The admin also has to recreate public filters in JIRA as the Deki extension cannot access them. Reproduced by MindTouch support. No intention to fix that I am aware of: http://bugs.developer.mindtouch.com/view.php?id=6822 edited 17:04, 26 Aug 2009
Posted 20:56, 16 Jul 2009
Can you develop support for displaying Jira charts inline in Deki?
Posted 22:33, 11 Nov 2009
Guys, really need some help with this one...
Our Jira plugin has stopped working and we cannot figure out how to fix it. We get the following error for any jira item used:
/div/p/span, function 'Table' failed with response:
The request failed with HTTP status 404: NotFound
The wiki server is able to reach and resolve the jira URL, the username is correct and the filters exist. Also, the jira extension is listed as running and doesn't display any errors when restarting it.
Is there anything else we can check to see whats up?

Completely stumped!
Eamon.
Posted 10:34, 9 Dec 2009
@eamon, yeah this may be a tough one to troubleshoot. Have you upgraded your jira version lately? I know there are some interface changes with the new version but thats unlikely to cause the 404.. The jira extension takes the `jira-uri` setting and appends '/rpc/soap/jirasoapservice-v2' to it. Can you see if that exists? Perhaps they changed that uri in the new version. Perhaps try checking the web server running jira or jira logs for some leads?

Good luck
Posted 22:26, 22 Dec 2009
Does anyone have a working jira integration with 9.08.3 ?

I keep getting a rather unusual stack trace (interesting bits at the end of this post) . Funny thing is , when I do a full packet capture and look at in wireshark, I see the correct HTTP/SOAP traffic. The response from our Jira 4.0 install is exactly the issue I was requesting, the SOAP response looks good.

If i supply the Jira.Link function with a bogus ID I do receive intelligible exceptions pointing out the error.

If anyone could suggest where I might be able to debug this further, I'd be grateful.

Thanks




----------------

MindTouch.Deki.Script.DekiScriptInvokeException: function 'Link' failed

Server stack trace:
at MindTouch.Deki.Script.DekiScriptRuntime+<Invoke>d__0.MoveNext () [0x00000]
at MindTouch.Dream.Coroutine.Iterate (IEnumerator`1 coroutine, MindTouch.Tasking.TaskEnv env, System.Action`1 completion) [0x00000]

Exception rethrown at [0]:
---> System.NullReferenceException: Object reference not set to an instance of an object
Posted 21:14, 18 Jan 2010
@mkinsley, replying on your bug report at http://bugs.developer.mindtouch.com/view.php?id=7513
Posted 21:28, 18 Jan 2010
Work lovely.
Question, I can add a custom column to the results?
Posted 13:28, 12 Mar 2010
Viewing 12 of 12 comments: view all
You must login to post a comment.