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

Whats the best way to "Add" to request particpants when using multiple Automations?

Calvin
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.
May 16, 2024

Hi all, we have one automation where on ticket create it adds a certain request partipant based on certain values.

Now someone wants another automation where based on other values it adds a request participant on creation.

I find that instead of adding though, it re-writes over it. So I tried to add a "re-fetch" of the issue in the second automation and "copy from issue" on the Automation Request Participant field so that it "copies and fetches the current". But it seems like even with the re-fetch it doesn't mean the second automation will run first, and so it still gets written over.

Should I update the original automation too with a re-fetch or "Copy from issue" or is there a better way to just add these request participants without wiping the list.

Cheers!

1 answer

1 accepted

1 vote
Answer accepted
Kalyan Sattaluri
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.
May 16, 2024

Hello @Calvin 

If you want to "add" Participants, instead of overwriting them, you need to you use advanced edit section and provide ID to add using JSON. 

This applies to all rules which are trying to add to existing list of users.

Please see this section == LINK

Hope it helps. Thanks!

Snippet:

The request participants field for Jira Service Management must be in a certain structure. For example, to add the last commenter of the issue to participants:

{
"update": {
"Request participants" : [
{
"add": {
"id":"{{issue.comments.last.author.accountId}}"
}
}
]
}
}

 

Calvin
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.
May 22, 2024

Thanks Kalyan, it does indeed :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events