Forums

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

Apply action for each member of a group

Gabriell Valentine March 15, 2023

New to Atlassian and I'm trying to create a basic automation but running into a wall. What I want to do is make sure that any team members with expertise in a particular platform are always pinged whenever an issue comes in relevant to that expertise. 

What I want to do:

-When issue is created

-check custom field

-if field has value "X"

-assign members of group "X" as watchers to the ticket. 

My understanding is there is no way to do this out of the box. So, I have to get the members of the group with a web request. Simple enough. But now that I have those members as a variable, how to I iterate over that variable (Like an array) and assign each member as a watcher? Is this even the best way of going about what I'm trying to do?

 

1 answer

0 votes
Kelly Arrey
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.
March 16, 2023

There is a way to do something like this out of the box:

  1. Create components in Jira
  2. Make your team members the component leads for the components where they are the experts
  3. Make the component lead the default assignee 

Then, when an issue is created in component 'x', it will be assigned to the component lead for 'x'.

If that's not exactly what you're looking for, you may want to consider doing 1 and 2, and then developing some Jira Automation rules to add watchers to tickets that meet certain criteria.

Here are a couple of automation examples that might give you some ideas:

  1. When an issue is updated, set a label based on a keyword
  2. When a bug is created, add someone as a watcher 

Suggest an answer

Log in or Sign up to answer