Jira: Using XML-RPC to generate release notes

Charles Charles August 9, 2011

Hello,

I have been trying to integrate our release system with Jira. I started using XML-RPC protocol to:

1) Get productId -- using "jira1.getProjectsNoSchemes"

2) Get versionId (for product) -- using "jira1.getVersions"

What should I do next?I tried looking at the available APIs, but none seems to match:

http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/com/atlassian/jira/rpc/xmlrpc/XmlRpcService.html

Ideally, I want to be able to get the "Release Notes" directly. However, if that is not possible, what functionality is available to retrieve a list of issues and their information (description, status, etc)?

Thanks for the assistance!

Cheers.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Dave Thomas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 9, 2011

At our site, we use python to access the REST apis for this kind of reporting. In my opinion, it's a lot easier and more flexible than many of the alternative approaches. I gave a presentation at the Atlassian Summit about using python with the REST apis. The slides include code examples and can be found here:

http://summit.atlassian.com/archives/plugin-devs/scripting-atlassian-apps-with-python

Charles Charles August 9, 2011

Yeah, that's what I started looking at as well.

However, we are using Ant as our "glue", do you know if there is an easy way to access REST API? Is there a dedicated Ant task for Jira, or a generic REST API rest available? I would prefer not to have have another dependency (Python) if possible.

Thanks!

Dave Thomas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 10, 2011

The REST api is accessible via HTTP, so you don't have to use python -- it's just a convenient way to exercise the proper URLs and manipulate the data you get in response. We use bamboo to kick off ANT builds that invoke a python script as part of the build, so that's definitely possible.

Dave Thomas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 10, 2011

I'm not sure if it's possible to directly access the URLs for the REST API from ANT. I suppose you could write a custom ANT task, but to me, that doesn't really simplify things. You could also use ANT to invoke the command line interface that Bob mentions. But again, you're not really eliminating anything; you're just substituting one dependency for another. Our choice has been to use python, which is cross-platform and gives a lot of flexibility for doing exactly what you want.

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 9, 2011

Consider using JIRA Command Line Interface actions like getIssueList, getVersionList, getProject, getVersion, releaseVersion etc....

TAGS
AUG Leaders

Atlassian Community Events