I want a particular user to be automatically added as a watcher for a specific issue-type when a ticket is created in that project. I am using the Cloud version of JIRA.
Community moderators have prevented the ability to post new answers.
This will look like the attached image
Thanks for the reply, though I cannot quite figure how to work with JQL... Is it possible to create the rule without a condition since I do want this rule to apply for the whole board whatsoever.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @fulya
JQL is for filtering out tickets. You can even continue with When(issue created) and Then (New action -->Add watchers) only.
Automation rule will run for all tickets created in the project irrespective of the issue/ticket types
Please accept answer if it solves your query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @fulya
Try searching with "Manage Watcher" or just "watcher" in components section.
Instead of search, you can just scroll down to check what all options are present.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I cannot believe that I gave you this much trouble for such an easy application... Thanks for your time and effort you spent explaining to me!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @fulya ,
Please accept the answer if it has helped you find the solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I am not the owner of this question. Therefore I guess I am not the one to accept as an answer. Though I gave a vote to your answer, is this sufficient for you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
Prerequisites: ScriptRunner app from Atlassian MarketPlace
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinay,
I have done so, but I get an error message on line 7 . Variable "Issue" makes a binding variable of the same name.
Please advice
Maria
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
now it is possible to set it up very easily with Jira automation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using Update On Transition add-on you can set up a post function to automatically add watcher. For similar examples see https://bobswift.atlassian.net/wiki/spaces/CW/pages/55050519/How+to+update+issues+after+initial+issue+create
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Rambabu Patina _Appfire_
I have learnt something new today. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, however not available for Cloud version
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mario Garces,
You may need to investigate the Script Runner plugin and build a custom script to do this, as a similar question was created with regards to your request.
There is also a feature request on Atlassian's JIRA, you may want to vote on this issue.
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@[deleted]
Thank you, the workaround given in the feature request comments worked for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is pretty shit service every time there is a feature that loads of people want a ticket is created people have to upvote it people upvote it and then it is never added what is the point in telling us to vote for a feature if you are never ever going to do it what feature has the public requested that you ACTUALLY ADDED i am yet to see one added that isn't oww go to this plugin and pay even tho you already pay thousands a month for us
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Corey_Tabb totally agree. Most times I look for some help on a piece of functionality with Jira the answer seems to be from someone trying to sell their add-on through the marketplace ($$$), or you have to vote for it to be added. I mean, how long do we have to wait for all the votes to be counted... It comes across as "yeah, we're not going to do that, sorry bud".
Looks like Atlassian are getting their functionality gaps filled by the marketplace and probably getting a nice little cut on the way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.