Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sum Up all affected Issue (Automation)

Leena Pratheepan
Contributor
July 17, 2023 edited

Hello everybody,

I have a rule that says that when version is updated, the assignee and owner (team leader) of the Issues with the updated version  must be informed.

By itself the rule works. Problem I get 30 mails each issue when a vision is updated.

How can I change the rule so that it summarizes the issues affected ( lookUpIssue) and avoids when assignee and owner are the same people, not notified twice.

 

Thank you for your help.

 

Release changed.PNG

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 18, 2023 edited

Hi @Leena Pratheepan 

Please try using the Lookup Issues action instead of a branch: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues

You could use JQL to find the issues in the updated version, and then send a single email listing all of them:

  • trigger: version updated:
  • action: lookup issues with JQL to find the issues in that version
  • action: send email

Alternatively...let's say there are different owners for different issues.  A similar rule can solve that by iterating over the distinct assignees, like this:

  • trigger: version updated:
  • action: lookup issues with JQL to find the issues in that version
  • advanced branch: on {{lookupIssues.assignee.distinct}}
    • action: lookup issues with JQL, adding a condition to match the branched variable for assignee
    • action: send the email

And if there are issues with no assignee, you may need a couple of extra steps to test/email for that one to inform the project lead.

Please try that, and let me know if you need more details.

Kind regards,
Bill

Leena Pratheepan
Contributor
July 18, 2023 edited

@Bill Sheboy 

Thank you for your answer. I Think it would help. But how I define JQL to find the issues in that version? fixVersion in unreleased (XXX) changed or fixVersion in (XXXX) and updated >=-1d

Leena Pratheepan
Contributor
July 18, 2023 edited

Release.PNG So this the rule @Bill Sheboy 

Like • John Funk likes this
Leena Pratheepan
Contributor
July 18, 2023 edited

Release Problem.PNG

It shows me an error.

Error_Release.PNG

Why the rule does not work? Can anybody help?

Assignee field in Issues is not empty, I am the assignee of the Issues.

Like • John Funk likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 19, 2023 edited

For the JQL in the Lookup Issues action, please try something like this:

project = insertYourProjectName AND fixVersion = {{version.name}}

 

Regarding the error you are seeing, please note I suggested using the Lookup Issues action, and so you use the {{lookupIssues}} smart value and not {{issue}}

When you needed the user/assignee name for your greeting, just reference the first one in the lookup results.  And so your email body could be something like this:

Hi {{lookupIssues.first.assignee.displayName}}

Release {{version.name}} is updated.

Please check.

{{#lookupIssues}}
<a href="{{url}}">{{key}} - {{summary}}</a>
{{/}}
Best regards

Jira-Automatisierung

Again...this works if they are all assigned to a single person.  If you could have multiple assignees please see the other alternative I suggested.

 

Writing automaton rules requires learning and experimentation.  I encourage you to take a look at the links I provided as they show examples of what I described.

Like • 2 people like this
Leena Pratheepan
Contributor
July 20, 2023

even if I change the rule as you created it, it still doesn't work.

Release Problem.PNG Release Problem_2.PNG Release Problem_3.PNG

Leena Pratheepan
Contributor
July 20, 2023

When I use {{lookupIssues.first.assignee.displayName}} as Assignee.

Release Problem_4.PNG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events