Forums

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

How can I add a user as a watcher to all tickets in a project and set them as default

Shefali Tayade June 20, 2024

 

 

How can I add a user as a watcher to all tickets in a project. The request is to default the users as Watchers when any ticket is created in this project. 

2 answers

3 votes
Ste Wright
Community Champion
June 20, 2024

Hi @Shefali Tayade 

As in, add a set of users to every issue created? Or add them as a one-off?

You can do both using Automation.

---

Add as Issue Created

The rule might look like this...

  • Trigger: Issue created
  • Action: Manage watchers
    • Add these watchers = <insert users here>

---

Add as a One-off

You can use a Scheduled Trigger to do this. For this rule, don't worry about the schedule you choose to run against, you only need to run the rule once, then you can deactivate it.

  • Trigger: Scheduled
    • Run a JQL search... = TRUE (check box)
      • JQL = <JQL here to find relevant issues, eg. all issues in Project>
    • Only include issues that have changed... = FALSE (uncheck box)
  • Action: Manage watchers
    • Add these watchers = <insert users here>

Once you've published the rule, click on the breadcrumbs (...) in the top-right corner, and select "Run rule" to activate it immediately.

You can then either deactivate the rule, or delete it from the main rule list.

---

Let us know if these work for you!

Ste

0 votes
Duc Thang TRAN
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.
June 20, 2024

Hello @Shefali Tayade 

In my opinion, assuming you only have project admin permissions, for existing tickets you can create an automation: use a JQL query to find all existing tickets that don't have the person as a watcher,

then create an automation with :

  • a schedule and the scope set to your JQL query.
  • The action will be "Manage watchers" -> "Add watcher."

For future tickets  create an automation with :

  • a trigger on ticket creation and a condition that checks if the user is not a watcher.
  • If not, use the same action: "Manage watchers" -> "Add watcher."

 

Suggest an answer

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

Atlassian Community Events