Querying JIRA issues from another application...

Nick de Smith March 5, 2014

Hi,

I'm looking for a way to check that a string entered for cross-reference purposes in the comment field of our SCCS is a valid JIRA issue tag, e.g. user enters "OC-2134" in TFS/GIT/whatever - I need to check that "OC-2134" is a valid JIRA issue identifier.

The key thing here is that this has to be done from outside of JIRA, i.e. another application...

Using 5.0.3 at the moment, upgrading to 6.2 next week...

Thanks

2 answers

0 votes
Nick de Smith March 5, 2014

I've checked that "Accept remote API calls" is "ON" however all queries are failing even when I try a known valid issue, e.g.

http://<jiraserver>:8080/rest/api/latest/issue/AB-1234

Not sure where to go...

Just downloading & installing cURL to use that as my test client instead of IE...

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 5, 2014

Your REST url is wrong. My fault, Sorry, I should have pointed you at https://docs.atlassian.com/jira/REST/latest/- it's got the url guide and a list of the functions if you want to get more clever (like checking issue assignee or something)

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 5, 2014

I'd use REST to try to fetch the issue (it'll work in 5 and 6, so you can do it now and not worry about the upgrade). If it succeds, all is good, if it fails, issue is not there (or, can't be seen)

Suggest an answer

Log in or Sign up to answer