Currently, my org has an automation that updates the story points on a feature every time story points are added to that feature's child stories/bugs/spikes.
However, this runs A LOT and we don't need updates that often. What I'd like is to create an automation every Friday that:
I've tried some stuff, but I can't get it to run correctly. It just wipes the story points from the feature.
Hi @Ellie Tyler -- Welcome to the Atlassian Community!
First. your rule is trying to use the {{lookupIssues}} smart value but it has not first used the Lookup Issues action to gather the issues for the Feature as you loop through them:
https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues
Next, you note using an issue type named "Feature". Is that at the same level as the built-in type named Epic?
Kind regards,
Bill
Yes, a Feature = Epic at my org.
When doing a lookup feature, I'm guessing it's best to just make the lookup the same as the jql branch?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for confirming the issue types, and...
As the branch gets each "Feature", the Lookup Issues action would then find the child issues for it with this JQL:
parent = {{issue.key}}
Then the story points may be summed with this:
{{lookupIssues.Story points.sum}}
That will work if you have a company-managed project. If this is instead for a team-managed project, that uses the different "Story point estimate" field:
{{lookupIssues.Story point estimate.sum}}
Also, what is the purpose of the condition test in your rule? Shouldn't the parent always just be set to the sum?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If a story has a status of "expired" or "closed", then we won't be doing the work. I want the story points field to only reflect work we will do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then I would add those status exceptions to the lookup JQL:
AND status NOT IN ("Expired", "Closed")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try to stay in one thread when responding. That will help others reading this question in the future know if there are multiple possible solutions. Thanks!
Your rule has a condition such that it only updates the Epic when its Story Points are greater than or equal to 0...but they could be null also. That may be preventing the rule from making any updates.
Please post an image showing the audit log details for the rule execution, and expand all the sections at the right side > arrows so we can compare which steps ran relative to what you expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apologies! When you swap to a laptop it gets hard to find the thread.
I ended up removing the rule for story points and the entire automation is working as expected. Thank you so much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Harry Peng mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, does this look correct? It has run twice and I'm not seeing the story points update
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.