Version Labels and IDs

hi,

we have an open source project that's using JIRA at https://issues.jboss.org/browse/RAILO

our version numbers are in the format d.d.d.ddd where d is a digit, but the JIRA uses different numbers for the versions.

for example, JIRA uses 12321182 for 4.0.3.005 (see https://issues.jboss.org/browse/RAILO#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel)

I need to extract version information programmatically. how can I convert 4.0.3.005 to 12321182?

thanks,

Igal

3 answers

1 accepted

ok, I found

https://issues.jboss.org/rest/api/2/project/RAILO/versions

I can parse it no problem, but if there's an easier way like:

https://issues.jboss.org/rest/api/2/project/RAILO/versions/4.0.3.005 then that would be better.

thank you

0 votes

This does not look like an OnDemand question to me, so I'll ignore that tag...

A version in Jira is defined by a unique, immutable database ID. That's the number you are seeing (12321182). The version then has a display name. You've chosen d.d.d.ddd, but you could rename it to "Mr Flibble" if you felt like it.

It's not too hard to convert between them - the API has methods for getting a version object based on either the name or the ID, but it's a bit hard to give you more detail than that yet because we don't know what your "programatically" context is. Are you writing a plugin? REST? Core hacking? Elaborate on that and we may be able to help furthre.

hi Nic,

thank you for your quick response. sorry about the "OnDemand" thing -- it was a misunderstanding on my end.

what I'm trying to do is to get the release notes for a specific version.

when we publish a new version we publish with it the Release Notes, something like:

https://issues.jboss.org/secure/ReleaseNote.jspa?version=12321182&styleName=Text&projectId=12310683&Create=Create&atl_token=AQZJ-FV3A-N91S-UDEU%7Cb467570648cc09da420d8178482d3f94e924585f%7Clin

if there is a REST service for that where I can pass our own version number that would be ideal. otherwise I can code the solution according to whatever is available.

thank you,

Igal

p.s. -- below is the information that I need, given the parameter 4.0.3.005:

Release Notes - Railo - Version 4.0.3.005

* [RAILO-2297] - debug template report wrong total execution time when query reporting is enabled

* [RAILO-2304] - charset of language files is invalid

* [RAILO-2306] - fix cache issue with css of Railo admin

0 votes

This does not look like an OnDemand question to me, so I'll ignore that tag...

A version in Jira is defined by a unique, immutable database ID. That's the number you are seeing (12321182). The version then has a display name. You've chosen d.d.d.ddd, but you could rename it to "Mr Flibble" if you felt like it.

It's not too hard to convert between them - the API has methods for getting a version object based on either the name or the ID, but it's a bit hard to give you more detail than that yet because we don't know what your "programatically" context is. Are you writing a plugin? REST? Core hacking? Elaborate on that and we may be able to help furthre.

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

2,755 views 11 18
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