Hi Community,
I'm trying to set up an automation rule in Jira and would appreciate your guidance or suggestions.
Goal:
I want to create an automation rule that performs the following:
Use Case:
We use sub-tasks labeled "backup" to track support or fallback work. To keep our main task estimates accurate, we want the time logged in these sub-tasks to automatically reduce the remaining estimate of the parent issue.
What I’ve Tried:
I’ve explored the automation builder but haven’t found a straightforward way to reference the parent issue’s remaining estimate and update it based on the sub-task’s logged time.
Hi @Andreas Schaefer -- Welcome to the Atlassian Community!
Your rule's JSON expression to update the value appears to be using a created variable which was never created.
Please try adding that inside the branch and before the edit to calculate the value by subtracting the new worklog value. For example:
{{#=}} ROUND( ( {{issue.timetracking.remainingEstimateSeconds}} - {{worklog.timeSpentSeconds}} ) / 60, 0) {{/}}
How that works:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.