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?
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}}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.