Change Assignee based on a custom field

Kyle Cianchette July 30, 2012

So I understand that JIRA doesn't have this capability built in.

We want a post function in the workflow to automatically assign a user based on a specific custom field. For example, we have a field called "Unit Tester" where we choose a person who is going to be the unit tester at the beginning of our workflow. We want to pull that value out at a step later in the workflow, and make that person the assignee.

I was wondering if there are plugins out there that allow you to do that?

And we don't want the Unit tester to be chosen by anyone other than the person in the beginning of the workflow, so just changing the assignee manually late in the workflow won't fly.

5 answers

1 accepted

8 votes
Answer accepted
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.
July 30, 2012
Kyle Cianchette July 30, 2012

That's what I needed. Thanks!

0 votes
Alper AYKUT May 10, 2015

you can use the "Set a field as a function of other fields" function in JIRA Workflow tool plugin.

 

 

0 votes
Pritish Sinha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 2, 2014

1) Add a Post Function to the WF transition

2) Click Copy Value From Other Field

3) Give these values:

Source Field = Custom Field

Destination Field = Assignee

Alexandr Voitenko
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2014

This doesn't seem to work. I am able to copy one custom field's value to another(both of type User). The copied value appears on view screen. But when I copy the same custom field's value to assignee, the value is in the db, but not on the view screen. Have any idea what is the problem^

JessicaB September 27, 2016

I have the same problem. This doesn't work for the Assignee field. It ends up staying unassigned after completion.

Annette G. September 28, 2016

Hi Jessica,

I had the same problem and turned out that the user which makes the change in the background (in our case JMWE user) didnt have permissions to edit issues. This user is automatically assigned to the project role Atlassian-addons-project-access. By giving this role the permission to edit issues, the JMWE user was able to copy the field value to the user.

Hope this helps.

JessicaB September 28, 2016

@Annette G.

I never knew what that project role was for. Quick question you state that the JMWE user needs to in the role. Is that explicit? Or is that a facet of JIRA plugins that any needed users are implied? I see the role in our instance but no users assigned to it. I don't see a JMWE user in the system either. Thanks for any more insights you can provide. Thank you so much for replying!

NOTE: appears that just adding the project role (atlassian-addons-project-access) to the projects permission scheme for Editing Issues  must give an implied connection for the JMWE user as I made no other changes and it worked.

0 votes
smalik7 December 17, 2012

Is there anyway through which we can copy one of the customfield of parent ticket to asignee of Sub ticket.

Customfiled in parent ticket is user picker field.

Radu Dumitriu
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.
December 17, 2012

Try JJupin if you want abstraction from the Jira internals. Or, you can use Script Runner ...

0 votes
Kyle Cianchette July 30, 2012

Yup, that's what I needed. Thanks!

Suggest an answer

Log in or Sign up to answer