Forums

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

Add watchers from custom field using Automation

Harshvardhan Vala
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!
August 6, 2025

Hi I am trying to add an automation for automatically adding a watcher for the Issue using a custom field 'Reviewer'. I tried multiple ways but the automation isn't adding the watcher. It feels perhaps the smart value is not able to access the displayName/accountId. Can someone please help with this?

I also tried using {{issue.customfield_fieldNo}} but that didn't work. Tried {{issue.fields.Reveiwer.displayName}} that also doesn't work. Am I correctly fetching the concerned value? On clicking the paint like symbol image.png for the customfield, I don't get suggestions like displayName/accountId (I don't know if it should but wanted to mention it anyways).

Thank you in advance!

 

image.png

2 answers

0 votes
Bill Sheboy
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.
August 6, 2025

Hi @Harshvardhan Vala -- Welcome to the Atlassian Community!

This was not a permissions or project settings problem, but instead the wrong smart value was used.

Most rule actions with users need the accountId attribute, not the displayName one, to select a user.  Thus, you could have used one of these expressions:

{{issue.customfield_12345.accountId}}

or

{{issue.customfield_12345}}

The second one works the same as the first one because smart values with multiple attributes (e.g., a user) have a default attribute which is used when you do not specify one.  For users, that is the accountId.  To avoid confusion for other people reading your rules in the future, or any changes in Atlassian's definition of the defaults, I recommend explicitly selecting the attribute needed.

 

Kind regards,
Bill

0 votes
abelalia87
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.
August 6, 2025

Hi @Harshvardhan Vala 

Hi, use {{issue.Reviewer}}. 

abelalia87
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.
August 6, 2025

@Harshvardhan Vala 

I tried your smart value ({{issue.customfield_id}} and {{issue.fields.myPeopleCustomField}}), it worked on my end. I think permission to "manage watcher" is missing for the automation actor. Check your project permissions. 

Harshvardhan Vala
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!
August 6, 2025

Hi thanks @abelalia87 

Tried {{issue.Reviewer}} on another project and it worked. Must be some project related settings. 

 

Suggest an answer

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

Atlassian Community Events