Using: Jira Software Cloud Version
Current Scenario: We track time spent in development (Time Tracking) and time spent validating/testing (Validator Time). We use the "Time tracking" issue field and a custom "Validator Time" number field. The team knows that the "Validator Time" must be entered in a specific format (e.g.: (1, 1.25, 1.5, 1.75, 2, etc.)
Current Need: We want to add the Time Tracking + Validator Time and then convert it into Story Point by dividing by 4. (4hrs = 1 Story Point)
Performed: Created an automation Rule that when issues are transitioned from "In Progress" to "Done" it set the Time Tracking to 0, then the custom field Tracking Time pulls Time Tracking and divides by 3600 and stores it. Then it Validates that the "Validator Time" is Greater than zero and "Tracking Time" is great than zero. Finally, if both previous conditions are true it pulls the "Tracking Time" divides by 4 and adds "Validator Time divided by 4".
Problem: When I move an issue from "In Progress" to "Done" and "Time Tracking" has minutes e.g.: (15m, 30m, 45m, 1h 15m, 1h 30m, 1h 45m, etc.) The Tracking Time result is zero when it should be 0.25, 0.5, 0.75, 1.25, 1.5, 1.75)
Below: The formulas and transitions
1. Issue transitioned:
In Progress to Done
2. Edit Issue:
Tracking Time: {{issue.field|0}}
3. Edit Issue:
Tracking Time: {{issue.timetracking.timeSpentSeconds.divide(3600)}}
4. Branch Rule/Related issues:
Type: Current issue, Restricted: Playground project
5. Issue Field condition:
Validator Time greater than 0
6. Issue Field condition:
Tracking Time greater than 0
7. Edit issue:
Actual Points: {{#=}}{{issue.Tracking Time.divide(4).round}}+{{issue.Validator Time.divide(4).round}}{{/}}
Note: I'm new to Jira automation.
Help needed: How can I get this to convert time tracking add it against validator time and divide the total by 4 to get Actual Story Points.