Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Version Labels and IDs

Igal . February 19, 2013

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
Answer accepted
Igal . February 19, 2013

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
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2013

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.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2013

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.

Igal . February 19, 2013

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

Suggest an answer

Log in or Sign up to answer