I would like to automatically calculate the time elapsed from issue creation to resolution in Jira Service Management.
When the issue status changes to "Resolved", I want to calculate the time difference between the created time and the resolution date, and then store that in a custom text field in the format “X hours Y minutes” (e.g., “175 hours 45 minutes”).
Please tell me how to set up the automation rule in detail, including:
Trigger settings
Smart value syntax
How to prevent duplicate execution
How to format the output as human-readable (not decimal, but hours and minutes)
I’ve already created a custom field (text type) to store the result.