Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I will ned to display elapsed time for a SLA only in minutes.

jira server June 7, 2023

Hello Guys,

If i am trying to use this {{issue.Time to Resolution.ongoingCycle.elapsedTime.friendly}} smart value it coverts the time in hours and minutes ex: 90 minutes will be 1h 30m. But i need this to be displayed as 90m only. Is there a way to achieve this in an automation rule?

3 answers

0 votes
Sidharth verma March 22, 2024

Hi,

Instead of retrieving the value in {{issue.Time to Resolution.ongoingCycle.elapsedTime.friendly}} format which gives you the value in hours and minutes. Please retrieve the value via {{issue.Time to Resolution.ongoingCycle.elapsedTime.millis}}. this will give you the amount in milliseconds which you can easily convert into Minutes by dividing the number by 60000. This can be taken into a number field or a variable and divided by 60000 and round off to get the exact number of minutes. I have taken the value in a variable and done the below calculation to get the number:

 

{{<varname>.asNumber.divide(60000).round}}

 

 

0 votes
jira server June 7, 2023

Hi Sebastian,

Thanks for your quick response. Unfortunately, i am still not able to find a way to get the details in minutes, even after reviewing the page you have shared. Do you have any other suggestions.

0 votes
Sebastian Krzewiński
Community Champion
June 7, 2023

Hi @jira server 

 

Please check this doc - https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/. There are few examples how to convert time.

 

Regards,

Seba

Suggest an answer

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

Atlassian Community Events