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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Calculate Time of Resolution in WorkDay Hours - No capturing decimals

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.
Nov 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

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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events