CF multi select request

Hello!

I have a CF multi select in my project and I need to set off the second column as requirement.

How can I do this?

 

modulo.JPG

1 answer

1 accepted

This widget could not be displayed.

That's a "cascading select", not a "multi select".  I'm not sure what you mean by "set off" when you're talking about doing something to the second column?

Hi Nic! I need the value of second column be required too. this value is used to set my SLA time.

Ah, thanks, that explains it.

I'm afraid you need code.  If you have the Script Runner add-on, you can put validators into the workflow to force entry (my notes say the single line cfValues['your cascading field']?.values()*.value.size() == 2 will do it, but I did make those notes when working with JIRA 5).  You might also be able to do it with the Behaviours function.

If you don't have Script Runner, you'll need to find or write another add-on to be able to provide a validator

noo code nooo!!! if I use Behaviours function, how is this work?

for the code, i need to a line for a option in my list?

 

 

Apologies, I missed the response.

I don't use Behaviours enough to answer that directly.  In general, I can tell you that you should create a new Behaviour, which you can tie to a field, and then put conditions on it like "is mandatory when it matches this rule".  You may be able to use the code I gave for doing it in a validator.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

130 views 2 0
Join discussion

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