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

This widget could not be displayed.
Pedro Felgueiras Community Champion Mar 24, 2016

I think you have your solution here

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 13, 2018 in Jira Service Desk

Jira Service Desk – Don’t be afraid, the journey begins with curiosity! more productive while being fun to use at the same time. For some, getting started can be a bit intimidating. This is especially true if Jira Service Desk is your first exposure to Atlassian...

10,737 views 9 28
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