Set assignee based on cascading select

Hi,

 I’m trying to assign issues based on the value of a cascading select. I need to assign the issue to different users based on the first selection of the cascading select.

I tried using a post script with script runner for that.

Since I don’t want to have the assignee hard coded in the script , I thought of using the components field to help in this, define the same values as components and define the assignee for the components, then use the post script to set the component, based on the value the user choses in the cascading select.

For example:

Cascading select values: a-1, a-2, b-1, b-4

If a-1 or a-2 is chosen assign to user John, if b-1 or b-4 assign to user Emma.

Create components a,b, set assignee accordingly for them. ( the user who creates the issue won’t have to choose the component).

 

I saw a few similar questions but still it doesn’t work for me.

Is my idea of setting the components doable ?

If not what is the best way to accomplish this ?

Can someone help with the groovy script to use ?

 

 

Thanks in advance,

Alon

1 answer

1 accepted

I was able to solve the issue based on the answer given here:

https://community.atlassian.com/t5/Jira-Core-questions/JIRA-Update-Issue-Custom-Field-from-cascading-select/qaq-p/231034

I've added the script in the plugin post function as described.

This sets the components filed, but still the assignee was not changed, so I added another post function to set the assignee to the lead project/component developer and now everything works.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

111 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you