Auto assign issue based on the value selected in the custom field.

sreekanth_vempala August 15, 2018

Hi, 

I have two different single select custom  fields(ABC & DEF) for and two user(X & Y) (example:

1) custom field name : ABC

     values in ABC  custom field :      123

                                                         456

                                                         789

2) Custom Field name : DEF

    Values in DEF Custom Field:  097

                                                  765

                                                  893

Note:

If select the  Filed :ABC Value :456  & Filed : DEF Value: 893

it will auto assign to   X.

 

and Select the remaining values in fields it will auto assign to Y.

 

any one can give me solution.

 

1 answer

0 votes
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.
August 15, 2018

Hello,

You would need a plugin for it. For example, you can use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation

You can create a listener on the create and update issue events with a code like this:

if (#{ABC} == "456" && #{DEF} == "893" ) {
assignee = "user";
}

You can find more info about listeners here:

https://confluence.cprime.io/display/JJUPIN/SIL+Listeners

sreekanth_vempala August 15, 2018

@Alexey Matveev

 

I'm Using Adaptive Script Runner Plug-in , so please let me know how can i do with adaptive script runner plugin

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.
August 15, 2018

It is all basically the same. You need to create a listener on the update and create issue event. 

Then here you can find how to take the value of an option field:

https://community.atlassian.com/t5/Jira-Core-questions/How-to-get-checkbox-value-with-scriptrunner-in-post-function/qaq-p/278604

Here you can find how to assign an issue:

https://community.atlassian.com/t5/Marketplace-Apps-questions/Set-Assignee-in-Post-Function/qaq-p/355826

Suggest an answer

Log in or Sign up to answer