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 votes
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
Community showcase
Asked Thursday in Jira Service Desk

Looking for teams who switched from email to Jira Service Desk

The Jira Service Desk marketing team is working on a guide to help new Atlassian customers switch from email to JSD and we'd love to hear from you! Please share: - What made you realize that i...

163 views 1 5
View question

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