Forums

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

How can I automatically add watchers to the assignee of a linked issue?

Dung Ngo
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!
April 21, 2022

Hi everyone,

Is there a way to add assignee of a linked issue as a watcher in your ticket?

For example:

There's ticket A with assignee X

There's ticket B with assignee Y

Ticket A blocks ticket B

Is there any way that Jira can automatically add Y as a watcher in ticket A (so that they will be notified with any updates from the ticket that is blocking their work)?

1 answer

1 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Champion
April 21, 2022

Hi @Dung Ngo,

Welcome to Atlassian Community!

Yes, you can do this using automation by triggering on when you link the tickets to add users as watchers. Something like this will do it:

Screen Shot 2022-04-21 at 7.17.55 AM.png 

Jack Brickey
Community Champion
April 21, 2022

for the action you can use smart values to add the watcher. I believe it would be as below, but that needs to be tested and validated

{{initiator.assignee}}

Like # people like this
Dung Ngo
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!
April 21, 2022

Thanks @Mikael Sandberg and @Jack Brickey for your quick replies. Our admin set up the rule like this rule as below but it doesn't work as expected (no watcher's added). 

 image.png

I notice that there's a check box in the rule details "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule" => Do we need to check that box in order for the rule to run?

image.png

Mikael Sandberg
Community Champion
April 22, 2022

That checkbox only has to enabled if you have other automations that interact with your issues, like when you have one that transitions an issue to a new status, which triggers a second automation related to that new status. 

What you need to check is which of the two link types you used, because the automation would only add watchers to issues that have the inward link of "is blocked by". Also check the audit log to see if the automation triggered, and if so, it will also tell you why the watchers was not added.

Like Dung Ngo likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events