The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How do I automatically add watchers from a custom people field

Callie Dambrisi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2023

We have created a custom people field called "Supporters" on all of our issue types. When I add / remove someone as a "Supporter", I would like to automatically add / remove them from watchers on the ticket.

 

I tried to do this via Automation, but my current code does not seem to be working. Has anyone successfully done this with a Custom People Field?

Screenshot 2023-07-27 at 2.00.49 PM.png

2 answers

2 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Tomáš Vlach
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 Champions.
July 27, 2023

Hello Callie,

 

try following

 

{{customfield_XXXXX.accountId}}

Where customfield_XXXXX  is your custom field Supporter, the ID value (XXXXX) of your custom field can be found in the URL address while editing the custom field.

 

Tom

Tomáš Vlach
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 Champions.
July 27, 2023

I would also check the Remove all existing watchers option, to get all of the current "Supporter" users.

0 votes
Answer accepted
Kai Becker
Community Champion
July 27, 2023

Hi @Callie Dambrisi 

welcome to the community and thanks for your question.
You need to update the field via the advanced update function.

Please have a look at the answer from Mikael in this thread

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events