Forums

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

Jira Automation - add assignee as a watcher on a linked ticket

Oskar Salm December 13, 2022

Hi,

I need to establish adding the assignee as a watcher on a linked ticket with Jira automation. Automation should trigger when an issue is linked (regardless of the link type).

Let's say I'm an assignee in ticket A. I then link a ticket called B to ticket A. I now want the automation to add me (assignee) as a watcher on ticket B.

Note that ticket B might not be in the same project. This far I've only gotten automation to add a watcher on ticket A when tickets get linked.

auto.png

1 answer

0 votes
Bill Sheboy
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.
December 13, 2022

Hi @Oskar Salm 

First thing, try adding just {{assignee}} or {{assignee.accountId}} as the watcher.

Next thing, you may just want to add the new watcher once...so perhaps try using the fieldChange smart values to help.  You may need to experiment with this or {{changelog}} to get this to work.

And...If the linked issue is in another project, I believe your rule's scope will need to be global/multi-project to make that edit.  The challenge with that is there are limits on the number of global/multi-project executions per month...and a rule like this could use up your limits for your Standard license.  A work-around would be to instead call the REST API function with a webrequest to add the watcher.

Kind regards,
Bill

Oskar Salm December 14, 2022

Thanks Bill. I'll give it a swirl and let you know how it goes.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events