Jira automation: can not use smart value in Manage watchers action

Jie Kang April 19, 2020

It seems that I can only select from the list of users, but can't use smart value. Any suggestion?

Screen Shot 2020-04-19 at 9.32.12 AM.png

1 answer

1 accepted

1 vote
Answer accepted
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2020

Hello @Jie Kang ,

Smart Values are enabled for the 'add watchers' automation action.

This is also explicitly mentioned in the section named "Can I use  smart values?" that is visible in your screenshot, and you should be able to just type smart values in the fields without any issue:

smart-values.jpg

 

In case this is not what you were trying to report, please provide more details on the issue you are facing.

 

Cheers,
Dario

Steven Tonge
Contributor
February 16, 2022

Hi, I'm trying to implement this and keep getting the following error:

Manage Watchers

Error watching issues
CM-13: {self=https://xxx.atlassian.net/rest/api/2/user?accountId=xxx, CM-13: accountId=xxx, CM-13: displayName=xxx, CM-13: active=true, CM-13: timeZone=Etc/GMT, CM-13: accountType=atlassian}

I've placed the {{issue.Approver}} Smart Value in the Add Watchers step of the automation and I can see the correct user is being pulled out for the Smart Value but the user is not being added as a Watcher on the ticket. Any ideas what is wrong?

Thanks

Steven Tonge
Contributor
February 17, 2022

Solved it, you need to use {{issue.Approver.accountId}}

Like # people like this
jzuniga
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!
April 25, 2022

Legend! Thanks Steven.

Sam Huawey
Contributor
May 29, 2024

@Steven Tonge what if I need to remove not one watcher, but several?

{{#issue.watchers}}{{#if(not(active)}}{{body}}{{/}}{{/}}

something like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events