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

0 votes
Accepted answer

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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,970 views 19 22
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