How to get the {id} of a project latest version through the REST api ?

Lior Pesoa October 25, 2016

Hi,

 

Is there a way to get ONLY the latest version {id} using JIRA REST api ?

I am trying using some scripts to archive the latest version and then creating a new version, but i can't get the {id} for that.

 

Any ideas?

{id}

1 answer

0 votes
Peter Geshev
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.
October 25, 2016

Hi Lior,

You can query the paginated project versions API restpoint and set the maxResults param to 1 and pass the orderBy param to startDate/releaseDate (adding - before the order param value will cause descending order to be used).

Regards,
Peter 

Suggest an answer

Log in or Sign up to answer