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:
In case this is not what you were trying to report, please provide more details on the issue you are facing.
Cheers,
Dario
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved it, you need to use {{issue.Approver.accountId}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Legend! Thanks Steven.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Steven Tonge what if I need to remove not one watcher, but several?
{{#issue.watchers}}{{#if(not(active)}}{{body}}{{/}}{{/}}
something like this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.