Hey everyone,
I'm looking to add a Jira automation rule for the following:
- IF sub-task transitioned to DONE status, THEN show the # of days it took to complete the sub-task in a field on the sub-task screen
I have been able to accomplish this by adding the following within a field called "Total Duration":
{{issue.created.diff(now).days}} Days
The problem is that this displays the following:
- Example:
- Created: 8/24/23 & 8:00AM
- Transitioned to DONE: 8/24/23 @ 5:00PM
- Total Duration: 0
The total duration is rounding to the nearest whole day, not showing partial days. In the example above, the sub-task took 9hrs to complete which is 9/24 --> 0.375 Days. How can I get it to show days in a decimal format?
Thank you!