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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

442 views 6 11
Read article

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