Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I set Auto assignee based on Single select two cascading field values.

IYTHA RAJESH September 13, 2023

Hi Community,

I want to do Auto assigning of issues to different users based on Single select Two cascading field values. Is there any way to do it from Jira Automation or from Scriptrunner plugin. 

 

Let me share some two Cascading combination values with sample emails to assign

General-General --->user1@xxx.com

IP-General --->user2@xxx.com

Memory-General --->user3@xxx.com

Manufacturing-General --->user4@xxx.com

 

Could you please find me a way to do this, I need this for Create & Edit issue events.

 

Regards,

Rajesh.

2 answers

1 vote
Tessa Tuteleers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 14, 2023

Hi @IYTHA RAJESH , 

you could use automation to check against changes in your field value for the create and edit, and then use if-else blocks for every combination. 

The JQL to use for casading fields is field in cascadeOption(parent, child)

Hope this helps! 

- Tessa

Tessa Tuteleers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 14, 2023

Hi @IYTHA RAJESH , 

I'm answering your question here to keep it in 1 thread, making it more readable. 

Hi Tessa Tuteleers,

Yes, I can use the automation, it will allow 44 components only but in my case I had more drop-down values in my two-cascade field.

You will need your mapping from select value -> assignee. 
If the list of possible combinations is so long, it will be difficult to maintain in the long run with automation rules, even if clever combinations could make it possible with automation. 

It's the same with scriptrunner, you could tell automation to run a scriptrunner script, get the select value and use cases to map to an assignee. However, your mapping will be hardcoded in the script, not a great solution.

Are you using Assets in your instance (previously Insight)? Most often we solve things like this with an asset management solution, where our parent > child list would be an insight field, referenced field and user attribute on the assets. 

This makes automatically assigning issues on data dynamic, easy to change later (just change the user on a specific asset and everything keeps working) and overall better to maintain. 

Your rule would then just get the user from the asset, and set the assignee to that user, no more if / elsing. 

- Tessa

IYTHA RAJESH September 14, 2023

Hi @Tessa Tuteleers ,

JQL is not working for me.

Jira servicedesk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2023

Hi @Tessa Tuteleers 

as i can See Script Runner option in side Automation Will it possible to do this via Groovy For such a cascade Field

i was trying but could not find such test/use case so that we can add Script via Script runner

IYTHA RAJESH September 15, 2023

Is there any script available, Actually I'm new to the Groovy.

Could you please share if anybody have.

0 votes
IYTHA RAJESH September 14, 2023

 

Hi Tessa Tuteleers,

Yes, I can use the automation, it will allow 44 components only but in my case I had more drop-down values in my two-cascade field.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events