Jira Automation cannot copy watchers from trigger issue

NicolasRiquelme February 17, 2021

When creating a ticket using Jira Automation, it does not allow to copy the watchers from the trigger issue. Nor there is an option to achieve that.

Our set up is on a project that whenever a ticket is transitioned to DONE, a ticket is created copying most values and changing the due date. That is all good and it works. The problem is that Jira Automation does not allow to copy the watchers from the trigger issue. It only allows to add or remove specific people. Th ewatchers vary on each task.

Is there a way for Jira Automation to copy the watchers from the trigger issue?

3 answers

1 accepted

5 votes
Answer accepted
Sherry Goyal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 17, 2021

@NicolasRiquelme 

Di you try clubbing branch on "most recently created issue" and manage watcher action. Try something like this:

Screen Shot 2021-02-18 at 3.39.25 pm.png

Let me know how this goes. Good luck!

Cheers
Sherry

Kian Stack Mumo Systems
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 17, 2021

That's exactly what I had as well!

Like # people like this
NicolasRiquelme February 17, 2021

YESSS!!! It worked! Thank you @Sherry Goyal that did it!!! You freaking genius. Thanks as well for reaching out @Kian Stack Mumo Systems 

Like # people like this
Michelle Campbell April 11, 2023

@Sherry Goyal and @Kian Stack Mumo Systems - {{triggerIssue.watchers}} only seems to work when the trigger issue is within the same project as the new issue.  Is there a way to make it work if the new issue is in a different project?

Maor Levinas April 19, 2023

Hi @Michelle Campbell did you manage to make it work in a different project?

Michelle Campbell April 19, 2023

@Maor Levinas - no unfortunately not.  

Maor Levinas April 19, 2023

Thanks @Michelle Campbell 

1 vote
Kian Stack Mumo Systems
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 17, 2021

@NicolasRiquelme

Try doing something like this:

 

Screen Shot 2021-02-17 at 10.22.27 PM.png

NicolasRiquelme February 17, 2021

Thanks Kian, good try but didn't work

0 votes
David Yu
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.
October 18, 2022

If you have the Watchers (now unavailable on marketplace) plugin, with "CC" being the name of the customfield.

{
"fields": {
"CC": [ {{#triggerIssue.CC}} {"name": "{{name}}" }{{^last}},{{body}}{{/}}{{/}} ]
}
}

This has the benefit of having the watchers added during creation so any notifications needed will be sent out on the create event.

This uses Smart Values' looping mechanism (#) and adds a comma to each item except the last one (^last).

Suggest an answer

Log in or Sign up to answer