How to calculate SLA times from JQL REST API results?

I'm trying to calculate the average response time for a JIRA Service Desk SLA via JQL REST API. I see the following column/value pairs that seem to be what I'm looking for, is there a way to translate this into the SLA's hours and minutes that I can then use to calculate the average?

'customfield_10101': 'com.atlassian.servicedesk.internal.sla.model.SLAValue@5921ab28'

'customfield_10100': 'com.atlassian.servicedesk.internal.sla.model.SLAValue@316bfccf'

Or is there a different way to handle this? I know there is a report that shows the graph and an average but I want to pull these numbers automatically to update an external report.

Thank you for your time.

1 answer

0 vote
Pedro Felgueiras Community Champion Mar 24, 2016

I think you have your solution here https://jira.atlassian.com/browse/JSD-346

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 Jun 14, 2018 in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

798 views 5 7
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