Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation to add multiple request participants from assets

Gerrit Wahlers
Contributor
March 5, 2025

If a user creates a ticket and chooses a department, all department managers should be added as request participants.

1 department can contain up to 5 employees in the attribute "manager". (1:n)

Every employee has one linked jira user in the attribute "Jira User". (1:1)

For a single manager, this "edit issue" step is working, but if a department has multiple Managers, i get the error "Inactive User". It seems the syntax of the list is wrong.

I use the edit issue-function with this JSON:

{
"update":{
"Request participants" :[
{
"add": {
"id":"{{#issue.customfield_10294.Manager}}{{Jira User.ID}}{{^last}}, {{/}}{{/}}"
}
}
]
}
}

2 answers

0 votes
Stephen_Lugton
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 5, 2025

Hi @Gerrit Wahlers 

Probably a silly question, but have you checked to make sure that one of the managers you're trying to add isn't actually an inactive user?

Gerrit Wahlers
Contributor
March 5, 2025

All manager´s Jira Users are active. I checked it more than one time.

My guess is that he tries to put in the user [User-ID1, User-ID2, User-ID3] instead of (maybe) [User-ID1],[User-ID2],[User-ID3].

Gerrit Wahlers
Contributor
March 5, 2025

We can add them all manually.

Stephen_Lugton
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 6, 2025

Have you tried using log action or a comment to see what the smart value {{#issue.customfield_10294.Manager}}{{Jira User.ID}}{{^last}}, {{/}}{{/}} is returning?

0 votes
Gerrit Wahlers
Contributor
March 5, 2025

I tried this, but it does not help either:

{"update": {
"Request participants": [
{{#issue.customfield_10294.Manager}}{"add": {"id":"{{Jira User.ID}}"}}{{^last}},{{/}}{{/}}
]
}
}

Source: Add/Update/Remove Request Participants using Automation | Jira | Atlassian Documentation

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events