Can we make a particular user as default watcher when creating a issue. i saw some workarounds for this

  1. Add project role/group for notification scheme
  2. Add Distributed list for project lead

Anyway these workarounds only sends the notifications, but will not update the watcher field with the user, Is there any possibility of doing that ?

1 answer

1 accepted

4 votes
Accepted answer
JIRA applications don't have this feature natively, but you can do it as below:
  1. Install the JIRA Watcher Field Plugin

  2. Under Administration > Issues > Fields > Custom Fields, create a new field:
    1. Type = Watcher Field, Name = Watchers, Description = (eg) "Watchers are notified on issue changes", Search template = Watcher Search, Issue Type = Any, Context =Global
  3. Click the screens link for the new field and add it to the appropriate screen associated with issue creation.
  4. In the Administration > Issues > Screens section, you can set the position of the watchers field for screens you have added it to.
  5. Perform a re-index.

We don't  want to select the user we have a specific user, can we set this automatically when we create an issue

You need the script runner plugin:

Add the following groovy script:


import com.atlassian.jira.ComponentManager
def componentManager = ComponentManager.getInstance()
def watcherManager = componentManager.getWatcherManager()
def userManager = componentManager.getUserUtil()
def watchUsers = {usernames ->
   usernames.each {
         def user = userManager.getUser(it)
         watcherManager.startWatching(user, issue.getGenericValue())
   def users = ["comma", "separated", "usernames"]

Hi ,

Thanks for the script.

i am getting error on the line 5 for this

->   any thing to be replaced for this ?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

826 views 3 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you