Hi,
I built an automation to sum up story points in an epic based on this question and the answer from Carlos Treminio.
As discussed there, this automation doesn't work, when a story gets added or removed to/from an epic. The solution posted by Guy Anela doesn't work for me, because the mentioned smart value {{changelog.Epic Link}} gives nothing back, which I tested by logging it.
So I tried the following solution for adding a story to an epic, this works great:
When adding a parent issue to a child issue, my idea is, to populate a custom field (customfield_10271) with the issue key of the parent issue, which I can use for the next automation, when I remove the parent issue from a child issue.
But I'm not quite there yet. When this automation runs, the story points of the epic is always 0, I don't understand, why.
The automation looks like this:
In the log of the smartvalue {{issue.key}} I get the correct issue key of the parent issue, which was removed. In the last step I try to build the sum with {{lookupIssues.Story Points.sum}}, which always is 0.
Thanks to everyone, who read my question up to this point and I'm happy about every input from the community.
Best regards
Jan
Hi @Jan Rosar
Please note well: parent / child data sum scenarios (e.g., to sum the child Story Points to the Epic Parent) span many possible cases. This is one of the reason there are marketplace apps to perform this type of field rollup / sync.
Some of the cases can be combined into rules with one trigger and conditional logic while others require their own rules with different triggers. Deciding which cases to handle will impact which rules to build.
A sampling of the cases around your scenario are:
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.
thank you for your response. Your solution doesn't work for me, because you are checking, whether the story points on an epic are changed. I don't change the story points, but remove a child issue from an epic.
Best regards
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jan Rosar
Welcome to the community.
See the following automation rule, of a simple story point sum up in the Epic.
In the lookup action change this to "Parent" = {{issue.key}}
You could change the trigger to value change for parent, or use both fields.
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 your response.
I'm afraid, your solution doesn't help with my problem, because, I don't change the value of the story points, but remove the child issue from the epic. So this automation wouldn't run in this case.
Best regards
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jan Rosar
As I mentioned, in the text, change the trigger to look at the field parent.
Then the automation looks if the parent field is changed, it will continue if the issue is not and Epic, then it will update the Story Points on the Epic.
Adjust the lookup query to "Parent" = {{issue.key}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorry, when I make your adjustments, it only works for adding a story to an epic. When I remove it, so the field "Parent" is empty, nothing happens.
And I think, this is correct, because in your automation the branch looks for the parent of the issue. But I removed the parent, so the branch doesn't run, because the trigger issue doesn't meet the condition of the branch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jan Rosar
This would be correct.
What is the detail of the trigger of the automation, is this based on value deletion?
If so, try the following.
Set the branch to advanced branching and the branch details to:
{{triggerIssue.parent}}, name the variable, then do the lookup en and the edit on story points, does this give a positive outcome?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks again, I appreciate your help.
Yes, the trigger here is "Value deleted" for the field Parent.
I'm not sure, I follow your latest instruction. When I create a branch like this, I get the error "The provided smart value couldn't be resolved to an object". That is correct as well, because at this point the trigger issue has no parent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jan Rosar
The only option I can give you is to create a rule based on a scheduled trigger.
Based on a JQL to run over each Eoic and recalculate the story points on the Epic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.