Forums

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

Automation rule to unwatch the issue

Alexey
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.
February 17, 2023

Greetings, i have a request from a project manager to create an automation based on CRON with a action 'comment'. 

An actor for that comment will be real person (user_id). 

Problem - that action triggers 'auto-watch' feature, which is turn on in that user personal settings, and their willing to keep it like that. 

But that automation leads to overwhelming stream of notifications and emails.

Question, is it possible to add to that automation 'un-watch' step? or any other way to reduce unwanted noise 

 


 

2 answers

1 accepted

3 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 17, 2023

Hello @Alexey 

Yes, there is a Manage Watchers action.

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Manage-watchers

You would want to use the Re-fetch action after the Comment action to ensure you get the updated issue after the user has been added as a Watcher because of the comment addition. Then you could add the Manage Watchers action to remove the comment author from Watchers.

Alexey
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.
February 17, 2023

@Trudy Claspill perfect, thanks. 

Like Trudy Claspill likes this
0 votes
Alexey
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.
February 21, 2023

UPDATE: 

It works great then paired with IF advanced compare values like {{issue.watchers}} to make a check BEFORE adding a comment to see if a person actually was a watcher before the automation, to prevent accidental unwatch.  

The rule looks like:

IF person is not watcher

THEN add comment, re-fetch and unwatch

ELSE add comment

Suggest an answer

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

Atlassian Community Events