Querying JIRA issues from another application...

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

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)

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...

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)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,163 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you