Can we make a particular user as default watcher when creating a issue. i saw some workarounds for this
Anyway these workarounds only sends the notifications, but will not update the watcher field with the user, Is there any possibility of doing that ?
Install the JIRA Watcher Field Plugin
We don't want to select the user we have a specific user, can we set this automatically when we create an issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"]
watchUsers(users)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Thanks for the script.
i am getting error on the line 5 for this
-> any thing to be replaced for this ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @JIRA Team Mailb ,
You can achieve this by means of automation rules.
I was able to add a default watcher by simply creating an automation rule at the event (trigger) of New Issue Created, followed by certain conditions which are called components in automation rule config. No Plugins are required to do so and we can choose this rules at global level or at project level as well. BTW the rules are very cool to do lot of stuff automatically.
HTH :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
How do I do that?
How do I access these automations from Issue created?
I want to setup a default Reviewer rule to be the person who is the Reporter of the issue
Thanks ahead
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You should have Admin rights for the project to have access to "Automation Rules", alternatively you can ask project admin to do that for you. W.r.t. specifically about Default Reviewer, I haven't tried that, but if there is a field for that, it should be possible. Refer page : https://www.atlassian.com/software/jira/guides/expand-jira/automation, for better understanding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.