Hello Community,
I’m working on automation rules in Jira Software and need some help with calculating the Due Date based on Start Date and Original Estimate.
Start Date Update
When a work item transitions from Open → To Do, the Start Date is updated (JSON attached).
End Date Update
When a work item transitions from Any Status → Done, the End Date is updated (JSON attached).
Both rules are working correctly.
I want to automatically calculate the Due Date when:
Start Date is populated
Original Estimate is set
Trigger: Field value changed → Time Tracking
Condition: Start Date is not empty
Action: Edit issue fields → Due Date = (formula below)
Rule Name: Rule 4 — Auto Due Date
Option 1 — Using custom field ID:
{{issue.customfield_10015.plusBusinessDays({{#=}}{{issue.originalEstimate}} / 86400{{/}})}}Option 2 — Using field name:
{{issue["Start date"].plusBusinessDays({{#=}}{{issue.originalEstimate}} / 86400{{/}})}}Option 3 — Simplified:
{{issue.Start date.plusBusinessDays({{issue.originalEstimate}} / 86400)}}Option 4 — Alternative syntax:
{{issue."Start date".plusBusinessDays({{issue.originalEstimate}} / 86400)}}Option 5 — Epoch-based calculation:
{{#=}}{{issue.Start date.epochSecond}} + ({{issue.originalEstimate}} / 86400 * 86400){{/}}All of the above formulas are failing when the rule executes. The Due Date is not being updated.
Correct way to reference Original Estimate in automation
Whether Original Estimate should be accessed via timetracking.originalEstimateSeconds
Proper method to calculate Due Date = Start Date + Original Estimate (in business days)
Any working smart value examples for this scenario
I understand that Original Estimate is stored in seconds, so I attempted conversion using / 86400
Still unable to get a working result
Any guidance, corrections, or working examples would be greatly appreciated.
Thanks in advance!
Just on top of my head.
You can try: {{issue.customfield_xxxxx.plusBusinessDays(issue.originalEstimate.devide(86400))}}
Otherwise I think you can store the value of "Original estimate" in a number field, so calculate this to a whole number and store this in a number field.
Then set the Due date as {{issue.customfield_xxxxx.plusBusinessDays(issue.customfield_xxxxx)}}
Or you might be able to store the whole number calculation of "Original estimate" in a variable.
Then use: {{issue.customfield_xxxxx.plusBusinessDays({{variable}})}}
Do use customfield ID, if you have multiple "start date" fields in your instance.
Thank you Marc, I had built another one , its working for me, now i have check for Time logging
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.