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

how to retrieve installed jira version via REST api

Agustin Martin May 13, 2015

I can retrieve my installed stash version via REST api by using the URL:

http://www.example.com/stash/rest/api/1.0/application-properties

which yields:

{
   "version": "3.8.1",
   "buildNumber": "3008001",
   "buildDate": "1430730508586",
   "displayName": "Stash"
}

However when I try the expected JIRA similar URL:

http://www.example.com/jira/rest/api/2/application-properties

I get a quite long json without any version information.

Is there any REST api for retrieving my installed JIRA instance version?


Thanks!

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
Kian Stack Mumo Systems
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 13, 2015

Hi Agustin, you should be able to retrieve the version like this: http://example.com/jira/rest/api/2/serverInfo. For me it returned a JSON with the server information. 


Hope this helps! 


Kian

Agustin Martin May 13, 2015

Thanks @Kian Stack [Mumo Systems] !! That was fast!

0 votes
Agustin Martin May 13, 2015

Note that I already have a hackish way for retrieving my jira version by requesting a missing page and getting the version from the 404.html page, but that's not an ideal solution: curl -s -k -X GET http://www.example.com/jira/404.html | grep footer-build-information | cut -d'(' -f 2 | cut -d'#' -f 1

TAGS
AUG Leaders

Atlassian Community Events