Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,537
Community Members
 
Community Events
184
Community Groups

Get SLA value with Java API

Hi!

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? 

 

Thanks,

Olena

1 answer

1 vote
Rafael Meira
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Nov 28, 2022

Hi, Olena!

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.


Best,
Rafa

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events