Automatically watch issues

Esther Strom, ACP-JA February 13, 2013

Is there a way I can automatically (or with one click) add myself to the watchers list for all tickets in a project where I'm the lead developer?

5 answers

1 accepted

1 vote
Answer accepted
Marcus Silveira
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2013

Hi Esther,

There's currently no way to add yourself as a watcher automatically to all these tickets.

What you can do is add yourself in the notification scheme for those projects so you'll be notified on any events you may want to.

Hope this helps,

Marcus

Aleksey Endovskiy April 16, 2020

Hello!
Does it still work in current version of the JIRA Cloud?

4 votes
Khaled R April 13, 2020

In Jira cloud, go to the project settings, choose apps > Project automation, and create a new rule. Trigger: new issue is created. Action add (your user) as a watcher.

1 vote
Vinay Shekar S February 28, 2020

This can be achieved by adding custom script postfunction on "Create Issue" workflow transition.

Follow below steps:

1. Add a Post function

2. Select "Script Post-Function [ScriptRunner]"

3. Select "Custom script post-function"

4. Add below code

========================================

import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.MutableIssue


def userName = "username" // name of the user
def userManager = ComponentAccessor.getUserManager()
MutableIssue issue = issue as MutableIssue
def user = userManager.getUserByName(userName)

def watcherManager = ComponentAccessor.getWatcherManager()

watcherManager.startWatching(user, issue)

=========================================

5. Don't forget to move this postfunction below "Creates the issue originally"

PrerequisitesScriptRunner app from Atlassian MarketPlace

0 votes
Mohammed Davoodi
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 11, 2016

Our organization has developed a plugin to do exactly this. You can automatically watch issues based on any JQL rules you specify. You can find the plugin here.

0 votes
Jobin Kuruvilla [Adaptavist]
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.
February 13, 2013

Agree with Marcus. A workaround would be to install the Watcher field plugin and do a bulk edit.

https://marketplace.atlassian.com/plugins/com.burningcode.jira.issue.customfields.impl.jira-watcher-field

Eric Mitchell March 20, 2013

Do you have any suggestions that would work for the ondemand version that isn't supported by this plugin?

Suggest an answer

Log in or Sign up to answer