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

Get SLA value with Java API

Olena Havrylenko
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!
November 25, 2022

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.
November 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