How to fetch Confluence version from Database
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
This KB will help you fetch Confluence version information from Database. This can be useful when the Server is down or you do not have access to the Filesystem of Confluence
Solution
We can run the below query to fetch the version information
SELECT BANDANAVALUE FROM BANDANA b WHERE BANDANAKEY = 'version.history';
The result will be like below which shows the version as 7.14.1
<map>
<entry>
<string>7.14.1</string>
<string>2021-12-18T22:32:09.915+05:30</string>
</entry>
</map>