Forums

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

Get days to jira license expire with JAVA API

Tomasz Bryła
Contributor
February 7, 2019

Hi,

I looking for way to get days to maintenance expiry in Jira Software with Script Runner. I found getDaysToMaintenanceExpiry() method in com.atlassian.jira.license.LicenseDetails but when I try return days i only get error.

No signature of method: static com.atlassian.jira.license.LicenseDetails.getDaysToMaintenanceExpiry() is applicable for argument types: () values: []

Anyone try to do this with Java API?

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 11, 2019

Hello Tomasz,

I reviewed your question and tested and confirmed we’re getting the same result. The class you’re calling only has 2 nested classes, which are the static classes. You may find more about the classes for LicenseDetails at com.atlassian.jira.license.LicenseDetails.

I am still attempting to find out how to access further license details via the Java API. Please allow me some time to find a way to access the following:

getDaysToLicenseExpiry()
getDaysToMaintenanceExpiry()

Regards,

Stephen Sifers

salmanairi June 1, 2020

Hi , have you find a way to get it ?

thanks

Suggest an answer

Log in or Sign up to answer