Adding Watchers automatically to all new Issues

How do I enable the functionality so that three users get added in the watchers list automatically? Right now I have to do it manually in all newly created issues.
Official comment

This thread aged pretty well and the API this code snippet aims at has been deprecated, so I invite you to have a look at the documentation first You can also email us at should you have any further questions.

Hello Mark,
I suspect, the point of adding the users in the watchers list is that you want them to receive notifications on any issue change.
If this is the case, please consider adding a saved query like 'project: projectId'. Then share the search with the users. When done, they (or any user with admin permissions) will be able to check 'on issue created' option for this saved query in their profile.

Hi Alexander,

No, what I think he means is similar to what I currently have to do. Because you can only make one person the Project Admin there's currently no way to have some people automatically become watchers. The purpose of this is essentially so that a group of people automatically receive notifications relating to any new issues.

The only way of doing this at the moment is manually. Maybe a workflow would solve it?

That is correct. I want the ability to add 2-3 predefined watchers on all newly created issue automatically. Currently, I have to do the manually.
Hi colleges,

this simple workflow does the trick:
rule Add watchers to new issues 
when becomesReported() { 
That did the trick perfectly! Thanks very much Dmitry.

I am new to YouTrack workflows. I see the code that Dmitry Krasilschikov wrote but I don't know exactly where to paste it. Can anyone help?


I've created simple workflow in editor:


Please sign in to leave a comment.