Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get JIRA license Information?

Jeet Patel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Jeet Patel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 15, 2021

Thank You! @Niranjan  @Carlos Garcia Navarro  

Suggest an answer

Log in or Sign up to answer