Auto-Assign Based on Multiple CF values

Scott Federman October 29, 2018

My project has two single select drop-down fields "Primary Component" and "Sub-Component". Neither of these are the standard out of the box component field. 

What I need help with is depending on combination of of options selected across the two fields, the issue will auto assign. 

So If Primary component has 

  • Option 1
  • Option 2
  • Option 3

and secondary component has

  • Option A
  • Option B
  • Option C

 

My issues has Option 1/Option B selected than it should assign to John Doe

 

Whats the best way to do this and how?

2 answers

1 accepted

0 votes
Answer accepted
Deleted user October 29, 2018

Hey there Scott,

With Automation for Jira you can match the values of a cascading select list using smart values (see https://docs.automationforjira.com/smart-fields/smart-fields.html) and a compare condition https://docs.automationforjira.com/components/conditions/conditions.html#compare

In your case, the rule might look something like:

Project_automation_-_Your_Company_Jira.png

 

Where you use the smart value:

{{issue.Your field name.value}}:{{issue.Your field name.child.value}}

EQUALS

Parent value:Child value

To match both the parent and child. Once that's matched, you can add whatever automation you need.

Let us know if that helps!

Cheers,

Mark C

Scott Federman October 30, 2018

Hey Mark, 

So in this case would this be correct?

{{issue.Primary Component.value}}:{{issue.Sub-Component.child.value}}

EQUALS

Alerting & Reporting:Phone Home Client Software
0 votes
Tom Lister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2018

You could use a plugin like scriptrunner to write a custom post function to perform this.

We had to build functions to assign authorisers and implementers based on systems drop down selection. We stored the lookups in cascading selects where the first level was a system and the sub level the grops to use. It works and the users took to maintaining the lists. 

The same app had a risk assessment based on a questionnaire. This used the options selected to derive a value. Similar to evaluating options in your case.

so doable but there may be plugins out there already 

Suggest an answer

Log in or Sign up to answer