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"?
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
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG