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

Accepted Answer
1 vote

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
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

469 views 7 5
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