How to calculate sla for jira issue?

Hi.

Firstly, I am new in Jira Service Desk development, so any mistake in question please forgive me.

I am trying to calculate sla value in date format, currently it in hour format.

I have used following approach.

1) fetching sla value using jsd rest api but it give me in hour:min format.So is there any way to fetch it date format?.

2) I have also tried with  SlaInformationService.getInfo(au,query) method which return me sla information but i got some exception here regarding Ether class.

So now i am trying to calculate sla manually.

What are the things needed to calculate sla for issue?

 

 

Thanks in advance.

 

 

1 answer

This is not a direct answer to your question but is an explanation of some of the challenges you will face trying to calculate the SLA in date format rather than hours to review. 

SLAs are calculated against a calendar. Out of the box JSD comes with two configured calendars 24x7 and 9-5 office hours. But each installation can have many other calendars. Without the information of the calendar in action for an SLA it would be impossible to understand how the hours relate to a future time.

What is your business case for needing the SLA in date format? As there may be an alternative way to achieve the same outcome but without using the SLA in hour format. For example it may be possible to use the time remaining function in a JQL query to provide a list of issues in increasing order of how much time is left before the SLA is breached (this has the advantage of also including items that have already breached SLAs).

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

71 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you