I followed several articles on how to set a JIRA automation to sum up 'Task Estimates' up to a field on the Story level called 'Groomed Estimate'. Despite the audit log saying success, the 'Groomed Estimate' value remains null. Seeking help!
Rule:
Audit Log:
Setting Subtask value of 'Task Estimate' to 4:
Parent issue / Story field value of 'Groomed Estimate' remains null:
Hello @roger_sun
Welcome to the community.
An excellent tool to help debug Automation Rules is the Log action. You can use the Log action to print any smart value into the Audit Log of the rule execution.
Try using the Log action to print out the smart value you are trying to assign to your Groomed Estimate field and see if it actually has a value.
Also, what type of fields are Task Estimate and Groomed Estimate?
And from where specifically did you get the idea for using {{issue.subtasks....}}?
Also, what type of fields are Task Estimate and Groomed Estimate?
And from where specifically did you get the idea for using {{issue.subtasks....}}?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for that additional information.
It looks like you are working with issues in a Team Managed project. Is that correct?
I have tried using the {{issue.subtasks...}} smart value in Automation rules for both a Company Managed and a Team Managed project to sum values from a Number field in subtasks to another Number field in the parent issue and it has worked.
What do you get when you print the smart value with the Log action? It is possible that there are multiple fields across the system named "Task Estimate" or "Groomed Estimate" and the Automation is working on the wrong fields. You may have to use the custom field id for one or both of the fields instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like you are working with issues in a Team Managed project. Is that correct?
It is possible that there are multiple fields across the system named "Task Estimate" or "Groomed Estimate" and the Automation is working on the wrong fields. You may have to use the custom field id for one or both of the fields instead.
What do you get when you print the smart value with the Log action?
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.
The Log action lets you print any smart value. You can insert into it the exact same smart value you are using to set the Groomed Estimate field.
FYI you can't use this syntax to reference a single subtask in the parent issue, nor to loop through the subtasks to print the Task Estimate for each. That why you are not seeing any values printed in the log for this step.
If you wanted to print out the values for each subtask you would need to set up a separate Branch that retrieved all the subtasks under the parent issue.
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.
That explains why no value is being set in the Groomed Estimate field. For some reason Jira is unable to generate a sum of the Task Estimate fields for the subtasks of the parent issue.
The next thing I would suggest is use the information here to output the list of all fields for a subtask that uses the Task Estimate field. From that output get the customfield_##### identifier for the Task Estimate field. Substitute that text (customfield_<the actual number>) where you have used Task Estimate in your smart values. Then execute your rule again to see if the output in the log is any different.
Another option is to use a Lookup Issues action to retrieve all the subtasks for that parent, and then sum the values from those results:
{{lookupIssues.Task Estimate.sum}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So i used the custom field ID this time and used the lookupissues formula you provided (w/ customID instead) and still same issue...
"customfield_10131":"Task Estimate"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To use the {{lookupIssues}} smart value you must first insert the Lookup Issues action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Trudy Claspill you. are. AWESOME. it works now!
super thank you for your patience -- it is very much appreciated!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did it work with the custom field nomenclature and the Lookup Issues action?
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.
I'm glad that it is now working.
Please consider marking the Answer and Accepted to help other users find posts with validated solutions.
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.