Forums

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

Auto Assign an issue based on Drop Down Fields?

JSD TEST199 December 19, 2018

Hi., 

I have below Query, Please clarify us. 

I have a Drop Down Custom Field(Are you Existing Customer?). In Drop Down there are two Fields: Yes and No

While creating an issue, If Customer, Select below Drop Down in Create Issue Screen then  issue Auto Assign as below. 

Are you Existing Customer: Yes / No

If Yes, Issue Auto Assign to "USER A". 

If No, Issue Auto Assign to "USER B". 

Please suggest us, How to do this in both ways (by using Plug-in and Scripting). 

 

Thanks. 

 

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
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 20, 2018

Hello,

You would need a plugin for it. 

For example, you could use the Power Scripts plugin:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could create a SIL post function with a code like this:

if (#{Drop Down} == "Yes") {

  assignee =  user1;

}

if (#{Drop Down} == "No") {

  assignee =  user2;

}

You can read more about the SIL post function here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Writingvalidators,postfunctions,andconditions

JSD TEST199 December 20, 2018

Hi Alexey, 

 

I am new to scripts..Can you please provide full script. 

Custom Field name (Drop Down): SIL Customfield. 

Usernames also same as user1, user2. 

I got below errors. 

 

autoassign.JPG

Alexey Matveev
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 20, 2018

Cloud you paste the errors here?

Suggest an answer

Log in or Sign up to answer