How to get JIRA license Information?

Jeet Patel July 5, 2021

Hi community,
I want to verify that "JIRA license is expired or not" through my plugin. My plugin is written in JAVA. so what will be the approach for that?

Thank you!

1 answer

1 accepted

2 votes
Answer accepted
Niranjan
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.
July 5, 2021

Hi @Jeet Patel - A simple option to get this info using the restapi - https://<Your JIRA URL>/rest/plugins/applications/1.0/installed/jira-software/license . This will return a JSON output, which can be parsed to get "expiryDateString". 

The method getLicenseDetails(String licenseString, I18nHelper i18nHelper) may work - JAVA API

Kindly refer the link below for JAVA API related methods

https://docs.atlassian.com/software/jira/docs/api/8.13.3/com/atlassian/jira/bc/license/JiraLicenseService.html

Carlos Garcia Navarro
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 5, 2021
Jeet Patel July 15, 2021

Thank You! @Niranjan  @Carlos Garcia Navarro  

Suggest an answer

Log in or Sign up to answer