Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can JIRA soap API not have this method?

Tags:

soap

api

jira

I want to be able to get a list of issues given a:

Project Name and Release Version

this seems like a basic JIRA soap API 101 request

It seems, looking at the documentation:

http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/index.html?com/atlassian/jira/rpc/soap/JiraSoapService.html

you can get issues by:

  1. Filter
  2. SearchTerms
  3. SearchTerms and Project

but not the above. Is this a complete oversight or i am missing something

i would expect to see something like this:

RemoteIssue[] issues = _soapService.getIssues(string project_, string version_)

any help?


UPDATE: I see that JIRA 4.0 is out but i can't find any documentation if the API has changed to support this request above. Can anyone find this link to answer that questions.

like image 241
leora Avatar asked Apr 18 '09 21:04

leora


3 Answers

It's not possible with the current JIRA API. They probably will make it in JIRA 4.0.

In JIRA Client we solved this problem by requesting IssueNavigator.jspa (Find Issues tab) with search conditions in URL and requesting RSS output; then parsing the RSS.

I've explained some of the intricacies of dealing with JIRA remotely, including searching, in this webinar: http://blogs.atlassian.com/news/2008/11/killer_jira_cli.html

Hope this helps

like image 155
sereda Avatar answered Oct 18 '22 10:10

sereda


In JIRA 4 you can use the JIRA Query Language with the SOAP method getIssuesFromJqlSearch.

like image 40
Kees de Kooter Avatar answered Oct 18 '22 10:10

Kees de Kooter


Not being able to upgrade to Jira 4 anytime soon and with a similar requirement, I retrieved issues by search term and project, kludging a "search term" that seems to work as a wildcard: "- 0 1 2 3 4 5 6 7 8 9". As all generated Issue keys are of the form XXX-YYY where Y is a digit, that should find all issues, albeit probably not efficiently for big projects. You'd then have to iterate through the result checking version numbers.

Not pretty - and I haven't tested this thoroughly yet - but it seems to work.

Thor

like image 38
Thor Harley Avatar answered Oct 18 '22 12:10

Thor Harley