Is there a way to find out jira version directly from the database?

Rahul Aich [Nagra]
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.
April 29, 2016

Is there a way to find out jira version directly from the database?

Rahul

3 answers

3 votes
petry
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 21, 2016

Yes:
select * from propertystring where id = (select id from propertyentry where property_key = 'jira.version'); 

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 29, 2016

Actually, no.  It's not stored as a direct number!

You might be able to work it out from the data in the "upgradehistory" table (if a system has ever been upgraded) but the database doesn't actually hold the installation version anywhere.

0 votes
Naga Purna Chander Inguva April 29, 2016

Hi Rahul,

 

Try this SQL query and let me know if it helps

select TARGETVERSION from upgradeversionhistory ORDER BY TIMEPERFORMED DESC

 

Regards

Chander Inguva

Suggest an answer

Log in or Sign up to answer