Hi team,
We have stories/Bugs and there is time spent on each one . We need to import to the epic the time that are logged in the tasks (stories, bugs and spike) that are connected as "is parent task of" in the project.
We are looking to achieve this using automation rules and hence looking for some guidance on the same.
I am trying something as below but looks like its not working
Please see this article and post for summing fields to a parent. As you are using Jira Data Center, the REST API must be used to sum the time keeping fields because they are not yet supported by the Lookup Issues action.
Kind regards,
Bill
Hi @Bill Sheboy
I have tried lookup issues as below
But it is showing me errors in the audit log as below.
How to add the total timespent on all lookupissues and add it to Epic?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please re-read the article and post I offered as the time tracking fields are not available with the Lookup Issues action with Jira Data Center's version of automation rules. The REST API must be used to access and sum the fields.
Additionally, the syntax you are using is incorrect for the smart values. When you review the other article you will see the correct syntax.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
We are not sure if we can use REST API for this . So can we use smart values like
Create a variable to get sum of original estimate
{{#=}}{{issue.subtasks.original estimate.sum}} / 3600{{/}}
and set that field value to original estimate?
or a way on how to just get sub-tasks original estimate not the sum?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That will work for summing Subtasks up to their parent Story as the smart value {{issue.subtasks}} should contain all possible fields of the issues.
It will not work for summing the Story values to the Epic: the REST API must be used to sum the time tracking fields for the update.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes you can achieve that by creating an Automation Rule, hope these steps will be helpful:
Create a New Rule.
Set the Trigger:
Branch Rule/Related Issues:
Action: Sum the Time Spent:
{{issue.subtasks.timeSpent.sum}}
{{lookupIssues.timeSpent.sum}}
Fetch Related Issues (if using links):
issue in linkedIssues({{issue.key}}, "is parent task of")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anahit Sukiasyan,
Once again, do not post bot / AI-generated content without disclosing the source. Please carefully read the community guidelines as you continue to do this: https://community.atlassian.com/t5/custom/page/page-id/rules-of-engagement
Additionally, the automated answer you posted cannot work for Jira Data Center automation: the Lookup Issues action for that Jira version does not support the fields noted.
Please confirm the validity of solutions you get from other sources before posting them to the Atlassian Community. Thank you.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.