You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I'd interesting in is it a way to get SLA value with Java API in the same format as it shows on SD (included svg icons).
I've inspected the SlaInformationService and find out that we can get general information, but:
1. remaining time not always gives correct value
2. duration formatter for human-readable format returns value in hours (so, -2d 5h in Jira will be -53h from duration formatter)
3. We have not all information about SLA status. We have only "paused" or "breached", but nothing about succeed or initial status.
Also SlaInformationService doesn't give us information about settings for SLA view (human-readable or hours:minutes)
So, the question is: Is it any way to just get value from SLA field the same as it shows in Jira SD?
Thank you for your questions.
The following are the docs for Java API for Jira: https://developer.atlassian.com/server/jira/platform/java-apis/
We also have the following guide which will guide you to create a sample add-on: https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-helloworld-plugin-project/
I am still looking for your question specifically on value from SLA field.
Kindly note that development-related queries fall beyond the support of this channel. Therefore for these queries, we would direct you to the developer's community at https://community.developer.atlassian.com.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.