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.
6 comments
Comment actions Permalink
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.

Regards,
  Alexander
0
Comment actions Permalink
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?

Regards,
Matt
0
Comment actions Permalink
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.
0
Comment actions Permalink
Hi colleges,

this simple workflow does the trick:
rule Add watchers to new issues 
 
when becomesReported() { 
  project.getUser("user1").watchIssue(issue); 
  project.getUser("user2").watchIssue(issue); 
  project.getUser("user3").watchIssue(issue); 
}
prettyPrint();
0
Comment actions Permalink
That did the trick perfectly! Thanks very much Dmitry.
0
Comment actions Permalink
Hi,

Please note that I will be out of the office for the rest of this week. In my absence, please direct all your urgent queries to welemary@dincloud.com

Thanks
Mark Millar
0

Please sign in to leave a comment.