How to set add watcher to all tasks created for a user?

OliviaChin March 11, 2024

I have created a Project under Jira Work Management. I created many tasks under this project. I want few of the watchers all can see these tasks that i created without adding in 1 task by 1 to the tasks that i created. When i update to the tasks then they can receive email notification  . How do i do it just only 1 add time to the project.

Thanks

2 answers

0 votes
Marc Koppelaar
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.
March 11, 2024

Hi @OliviaChin 

You can achieve this via automation.

Take the following steps:

Step 1:  Create a JQL query to find the issues for which you want to add watchers.

  • You can do this from the Filters -> View All Issues.
  • search for the project and the issues you want to add watchers to
  • Click on the JQL tab/button to show the filter as JQL.  Copy the JQL.

Step 2:  Create an Automation to add watchers to issues.

  • Project Settings ->Automation
  • Create Rule
    • Create Trigger:  Type = Schedule
    • Choose any schedule you want.
    • Check the box "Run a JQL search and execute actions for each issue in the query."
    • Paste the JQL query you created in Step 1.  You can verify it by clicking on "Validate Query".
    • Save Trigger.
    • Add a new component of type "Action".
    • Select "Manage Watchers"
    • Add the users you want as Watchers.
    • Click "Save"
  • Name and Save your Automation

Step 3:  Run your new automation

  • Even though you have created it to run on a schedule, you can run it manually by clicking on "Run Rule".  (You can optionally wait until your schedule kicks in.)
  • Once run, all the issues that meet the criteria of your JQL query will have the new Watchers added.

 

 

0 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2024

Hi Oliva,

If you have the ScriptRunner for Jira Cloud add on installed in your instance, this can be used to add watchers to issues.

We have an example script here that shows how to add watchers to newly created issues, you could configure this as a Script Listener  on the issue updated event so that it would add your list of watchers to each issue when you made a simple update to each issue.

I hope this helps.

Regards,

Kristian

Suggest an answer

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

Atlassian Community Events