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 vote

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,254 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot