Search This Blog

Sunday, February 7, 2010

Mantis Bug Tracker IE 8 Accelerator

I just took a few minutes and wrote an IE 8 accelerator that post data to Mantis. It is fairly rudimentary, but it is a good example and it gets the job done. To make it better I think it would be good to add a PHP page to the Mantis install that asks for a little more information like project, assign to, and maybe a more descriptive summary.

NOTE: This accelerator does not contain a login script so for seamless execution you should already be logged into Mantis.

Below is the code to create a link to install the accelerator:
<button id="myButton"
onclick="window.external.AddService('http://www.jcasolutions.com/bugtracker/mantis_ie_accelerator.xml')">
Post bug to mantis</button>



Below is the XML for the accelerator:
[file name: mantis_ie_accelerator]

<os:openservicedescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
<os:homepageurl>http://www.your_site.com/bugtracker</os:homepageurl>
<os:display>
<os:name>Post Issue to Mantis</os:name>
<os:icon>http://www.your_site.com/bugtracker/images/favicon.ico</os:icon>
<os:description>Quick way to post an issue to Mantis.</os:description>
</os:display>
<os:activity category="Bug Tracker">
<os:activityaction context="selection">
<os:execute action="http://www.your_site.com/bugtracker/bug_report_advanced_page.php" method="post">
<os:parameter name="summary" type="text" value="{selection}">
<os:parameter name="description" type="text" value="{selection}">
</os:parameter>
</os:parameter>
</os:execute>
</os:activityaction></os:activity></os:openservicedescription>

No comments:

Post a Comment