Forums

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

Is there a way to have someone be a watcher every time a particular person is assigned the task?

Shelby Baylis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 9, 2018

Hi all,

 

We have a specific notification question. Every time persons A and B are assigned a task on a project, person Z wants to be assigned as a watcher. Only when persons A and B are assigned the task. Is this possible to automate? Or is it only manually possible?

 

Thank you!

2 answers

2 votes
Alexey Matveev
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.
August 9, 2018

Hello,

You would need an addon for it. You can use the Power Scripts add-on.

https://marketplace.atlassian.com/apps/1210749/power-custom-fields?hosting=server&tab=overview

You could write a listener for the Issue Assigned event and check who the assignee is. If the assignee is either A or B, you can add user Z as a watcher. Your listener would look like this:

If (assignee == "userA" || assignee == "userB") {

     watchers = arrayAddElement(watchers, "UserC");

}

You can read more about listeners here:

https://confluence.cprime.io/display/JJUPIN/SIL+Listeners

0 votes
Raynard Rhodes
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.
August 10, 2018

.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events