Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-assign issues based on User Picker Field value

Callum Carlile _Automation Consultants_
Community Champion
January 16, 2019

I have a screen with 3 user selection fields, 'Facilities', 'Finance' and 'IT', where a user will be selected for each department.

Later on throughout the process, a sub-task issue is created for each of these departments, linked to their own workflows.

I am looking for a way to automatically assign these sub-tasks to the assignee that is selected in the initial screen. I know that you can use the 'Update issue field' post function to automatically assign the issue to a select user, but am looking for the code that will pull the user selected value from the original form and assign the sub-task to the person that has been selected (I'm assuming I'll have to do this in a custom script runner post function).

I also know this can be done using the JIRA Suite Utilities plugin, however the client that I am doing this for does not want to purchase any add-ons, so ideally I would like this to be achievable using ScriptRunner.

I have searched the internet high and low for the code but can not find it anywhere, please may someone help!

1 answer

1 vote
Grigory Salnikov
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.
January 16, 2019

Hello!

I'd assess project components as a possible solution. I think they worth looking into:

Organizing work with components

There's a "default assignee" feature that might be helpful.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events