Hi,
The default configuration for JIRA is such that whenever the workflow screen is presented, the Assignee field defaults to the current Assignee. We would like to modify that behaviour, such that the default Assignee is Automatic, _not_ the current Assignee.
I've looked through the configuration and can't find a way to do this, is such a configuration possible?
Thanks.
Hi, after few hours of reading atlassian forum and performing my own tests with scripts i found a solution to change the default assignee value on transition screen to "Automatic"
* go to JIRA Administration ~ Add-ons
* select Behaviours
* create a new Behavior
* create a new Mapping
* check the "Use validator plugin" box
* select Workflow to use ( required for next step )
* add Condition : Workflow action and select action from dropdown
* put following code into custom script :
def Assignee = getFieldById("assignee");
Assignee.setFormValue("-1");
Then it will work :)
Notice that it has to be -1 STRING value if you use just Assignee.setFormValue(-1) it will not work. In case you want to set assignee to "Unassigned" use Assignee.setFormValue("") ( EMPTY STRING )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Really suprised that no-one on this forum found a solution , such a simple task , took 4 hours of my life :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Pavel Perna ,
Thanks for your suggestion. I have added the behavior as suggested by you. But after setting the form value of assignee field it's not allowing me to click on the transition button. no errors as well. Do you have any solution for this?
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.
There are various post-functions on transitions that can be used to set the assignee field. It does not need to be the current user. Please look at this documentation and in particular the optional post functions..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Norman, you aren't answering Themis' exact question. He wants to modify the DEFAULT assignee value. I'm sure he knows he can use post functions to assign a ticket, but sometimes you want the user to have the choice to override the post function (some post functions have the option to conditionally allow overides, such as"unless user selects an Assignee in the transition screen").
How can you customize the DEFAULT value of assignee away from the current assignee and into "Automatic"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.