Adding request participants in an automation

Lena Krauß August 20, 2021

Hi everyone!

I am building a simple automation through which I want to add someone to the existing request participants (without removing the existing ones) when the status changes.

I tried two ways and both don't really work unfortunately:

 

1. Under "Choose fields to set..." I select Request Participants. In the field below, I select "Copy from issue" and the person I want to add.

When I test it, the automation overwrites the existing request participants and replaces them only with the person I wanted to add.

 

2. I tried the following JSON code (without selecting a "field to set" above):


Bildschirmfoto 2021-08-20 um 15.19.24.png

Of course I replaced "internal name of the person I want to add". I tried it with the email, too.

The automation doesn't create an error, so I suppose the code is correct. But when I test it, nothing happens at all.

 

I would be very happy about some ideas why this doesn't work. Thanks in advance!
Lena

1 answer

1 accepted

4 votes
Answer accepted
Manon Soubies-Camy _Modus Create_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 20, 2021

Hi @Lena Krauß and welcome to Community!

Can you try the following JSON instead?

{
"update": {
"Request participants" : [
{
"add": {
"accountId":"xxxxxxxx"
}
}
]
}
}

You can find account ids by going to the user profile:

Capture d’écran 2021-08-20 à 16.11.56.png

Hope this helps,

- Manon

Lena Krauß August 20, 2021

Hi Manon!

Thank you so much for your answer. That works perfectly :)

Thanks again and have a great day!
Lena

Like # people like this
Manon Soubies-Camy _Modus Create_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 20, 2021

Glad it helped! :)

Like # people like this
Peggy Miller February 21, 2023

Can someone give an example of adding more than one participant?  I'm having trouble getting the JSON syntax correct.  TIA

Peggy Miller February 21, 2023

I figured it out:


{
"update": {
"Request participants" : [
{"add": {"accountId":"xxxxxx"}},
{"add": {"accountId":"xxxxxx"}},
{"add": {"accountId":"xxxxxx"}},
{"remove": {"accountId":"xxxxxx"}}
]
}
}
Like Suporte OAT likes this

Suggest an answer

Log in or Sign up to answer