Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

jira rest api version discovery?

steve simon December 25, 2012
how do i find out which version of thr jira reply i should expect - 2.0 ro 2.0.alpha1; or is it just trial and error. i expected the sysinfo api to return the rest version as well as the jira version but ir does not seem to - in jira 4.4.4 thanks steve

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
steve simon January 9, 2013

I am a bit disappointed that there is no way to discover which version of the api the currently connected

server supports - other than either "try it and see" or having a client side table mapping jira

release versions to rest API versions, however this seems to be the best I can do, so be it.

Thanks to those who ansered.

-Steve

0 votes
Jobin Kuruvilla [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.
December 25, 2012

You can go to the JIRA versions REST documentation and find out the different methods. You can see whether is 2.0 or 2.0.alpha1 in there.

http://docs.atlassian.com/jira/REST/4.4.4/ shows it is 2.0.alpha1 for JIRA 4.4.4.

steve simon December 30, 2012
this describes which aips are available, but if i make a request using the api version "latest" then how do i know which json reply format i should expect? i would have expectef the sysinfo api to returnan array of supported api versions, the "latest" version being the newest and the last enter in the array, but this does not exist. -steve
Jobin Kuruvilla [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.
December 30, 2012

latest is just a symbolic link to the latest JIRA version out. If you are on an earlier JIRA version (4.4.4 here), you won't get the APIs used in latest docs.

TAGS
AUG Leaders

Atlassian Community Events