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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.