Auto Assign per User Picker Field

Adam Crow July 30, 2014

I have created a "PTO Request" issue type and have included a user picker field on the form which will be used to specify the requestor's manager. I would like to set the workflow up so that when the issue is created, it is automatically assigned to the manager specified in the user picker field so they can be notified and either approve/decline the request.

Is there a way to auto-assign an issue to the user specified in a "user picker" field?

1 answer

1 accepted

2 votes
Answer accepted
Jaime S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2014

Hi, Adam.

You can do this with the plugin 'JIRA Suite Utilities', which comes with OnDemand, but you have to enable it.

Once you have this plugin enabled, you can go to the 'create issue' transition in the workflow you want to modify and add a post function. When you create the post function, choose 'Copy Value From Other Field' . In 'Source Field' you choose the field that holds the requestor's manager and in the 'Destination Field', you choose 'Assignee'.

The order of the post function may affect the functionality.

I hope it is helpful.

Kind regards.

Jaime Kirch da Silveira.

Adam Crow July 31, 2014

This worked! Thanks Jaime

Jaime S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2014

You're welcome, Adam.

I am glad it worked.

Kind regards.

Jaime Kirch da Silveira

Paul Kluba September 8, 2014

We use this function, and our employees use the Customer Portal to enter their request. Works great. Some of our employees do not see the list of users to pick from in their browser session of customer portal, but most do. Are you aware of any special browser settings to consistently use the field as a "type-ahead"?

Jaime S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 8, 2014

This is generally because they don't have the 'Browse Users' global permission. You can press g+g in you JIRA and enter 'Global Permissions', selecting it when it appears. There you search for the 'Browse Users' permission and see which groups have it. Make sure your users belong to at least of of these groups (you can add other groups to the permission if necessary).

Jaime S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 8, 2014

* 'of of' should be 'one of'

Paul Kluba September 8, 2014

Thank you. that did the trick.

Jaime S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 8, 2014

I'm glad to hear it, Paul! Cheers.

Callum Carlile _Automation Consultants_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2019

@Jaime Silveira Is there any way to do this in ScriptRunner instead of using the add-on? I need to do exactly this for a client but they do not want to purchase any add-ons

Suggest an answer

Log in or Sign up to answer