CF multi select request


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?



1 answer

1 accepted

1 vote
Accepted answer

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,316 views 5 11
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