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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any script available, Actually I'm new to the Groovy.
Could you please share if anybody have.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.