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 Join to answer
Community showcase
Emilee Spencer
Published Friday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

64 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot