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

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 Leaders.
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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events