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.
Please sign in to leave a 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 https://www.jetbrains.com/help/youtrack/devportal/youtrack-workflow-reference.html. You can also email us at youtrack-support@jetbrains.com should you have any further questions.
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.
Regards,
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?
Regards,
Matt
this simple workflow does the trick:
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: