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
TAGS
atlassian, team ’25 europe guide, teamwork collection, atlassian events, conference guide, team culture, collaboration tools, ai in teamwork, atlassian learning, event schedule, keynote previews, community events

Must attend events for Team Europe '25!

Make the most of your time in Barcelona with our curated guide – discover how Jira, Confluence, Loom, and Rovo work better together, connect with Atlassian experts, and enter to win an Apple prize bundle!

Get the guide
AUG Leaders

Atlassian Community Events