Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Calculate Time of Resolution in WorkDay Hours - No capturing decimals

Steve Fitzgerald
Contributor
November 17, 2023

I'm trying to calculate the time to resolution of a ticket in a separate field in order to be able to display it on a dashboard. I'm not interested in a third party plug-in so I'm trying to figure it out using a calculated field. 

To get the duration in working hours I'm using:

{{#=}}{issue.created.diff(issue.resolved).businessDays}}*11{{/}}

 My custom field is a number field. It works, but it's not producing any decimals. Perhaps it won't because I'm using business days?

I tried rounding:

{{#=}}ROUND({issue.created.diff(issue.resolved).businessDays}}*11,2){{/}}

but that didn't work.

I tried creating another custom field and used:

{{time to resolution.asNumber.format("##.00")}}

but that didn't work either. 

Any suggestions?
 

1 answer

0 votes
Murat Seven
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2023

Hi @Steve Fitzgerald and thanks for your question.

 

It seems like you want to display the time between the issue's resolution and creation in a custom field of type 'number.' I'm not entirely sure why you're multiplying it by 11 in the smart value, but the reason it might not be working is that instead of using the term 'businessdays,' you can use 'Minutes.'

Your smart value could look like this:

{{#=}}{{issue.created.diff(issue.resolved).Minutes}}{{/}}

I hope this information helps.

Regards,

Murat Seven

Steve Fitzgerald
Contributor
November 20, 2023

Thanks. I was multiplying it by 11 because our workday is 11 hours long and I was trying to figure out how many working hours between creation date and resolution. Does the smart value you included look at working days/business days vs absolute dates/minutes? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events