How to link to a certain JIRA version if I know the human-readable string

We have versions like 1.0, 1.1, 2.0, 3.0 etc. and I would like to add links from our DokuWiki wiki to JIRA automatically.

It's pretty simple for issues where I just parse the wiki text and whenever I see PROJECTKEY-123, I take that and append it to the main URL like http://ourjira.com/browse/PROJECTKEY-123.

However, with versions the URLs are something like http://ourjira.com/browse/PROJECTKEY/fixforversion/10000 and that number is just an ID, so our 2.0 will be 10002, 3.0 will be 10003 etc.

Is there a way to somehow construct the link if I know I need to link to a human-readable version "x.y"?

2 answers

1 accepted

1 vote

You could possibly just link to the issue navigator, then you wouldn't need to do any rest calls:

/jira/secure/IssueNavigator.jspa?reset=true&mode=hide&jqlQuery=fixVersion+%3D+1.0+AND+project+%3D+PROJECTKEY

1 vote
Colin Goudie Community Champion May 08, 2012

You will probably need to retreive the list of versions (e.g. via REST), find the one who's name matches and then get its id. Then you can contruct the URL like you have listed

http://docs.atlassian.com/jira/REST/latest/#id160983

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,188 views 13 19
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