Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cascading Custom Field Multi-select

Hello everyone, I am a bit annoyed because of a small problem ..
I created a custom field, type cascading and I would incorporate a multi-select  on the second list, someone would have a solution to this problem?

Hoping to have been clear, and understandable.

3 answers

4 votes

You'll need code to do that - I'm not aware of any add-ons that provide such a field directly.  This is not something you can bodge with javascript on a cascading select as the field physically stores a single option, you will need a new field type for it.

If you've got behaviours (from Script Runner add-on) or another add-on that can link fields, you could have a single-select and a multiselect linked together to behave a lot like a cascading multi-select.

Thank you for your detailed answer, I'll see what I can do, if it ends I will inform on this post.

By the way, Peter's answer has just made me realise that I have made an assumption that you wanted a particular result.

He's suggested the "multi level cascading select" - this is a good option, but still only has one value stored.  I've assumed you wanted to select many options in the second list.

In case that's not clear, let's say you look at a normal cascading select:

First column optionSecond column option
State

<none>

Ohio
Washington
Texas

County<none>
Berkshire
Northamptonshire
Lancashire

In this, you can only end up storing one value - a single one of the eight options in the second column

What I think you asked for is

col 1col 2
State

<none>

Ohio
Washington
Texas

County<none>
Berkshire
Northamptonshire
Lancashire

Storing several options together - County:Berkshire, County:Lancashire aand State:Ohio all in the same field.

What the Multi-level thing does is give you more layers.  But it still stores a single answer.

col 1col 2col 3col 4
    

What I am looking it would for example have in the end the values of "Washington" and "Ohio".

The first list will be a single select list, and the second list will be a multi-select list.

Hi  Nic and Antoine,
I'm looking for a similar thing. 
Multi-level cascading on the second list (Given a single option in list 1, multiple options stored in list 2). Just like the County, Country example that Nic provided. 

Did you find a way to do it?
 

I have unfortunately found nothing

Hi. Are there any alternative ways to achieve this?

 

There are two ways I know of to do it, both given above.

Hi Nic, you suggest linking a select and a multi select list. 

How can that be done?

I'd go get one of my colleagues who knows how to configure Behaviours in the Script Runner

Yes, Thank you!

@Nic Brough _Adaptavist_ 

as you have mentioned , i have a request to attended,

tried customfields from script runner but still missing some thing, could you check and suggest a way i can make it possible.

Custom field  A  Drop down list  user select custom field
   (A,B,C,D)  (can select multiple users)

Any possibility i can acheive this .

Thank you

@Nic Brough _Adaptavist_ 

 

Any code examples would be incredibly helpful as I'm stuck on this at the moment, too.

 

Thanks

Like Yatish Madhav likes this

Thanks!  I'll check it out.

I'm new to Jira, so thank you for bearing with me.  I created 2 Custom Select List Fields -- one Select List (single choice), one Select List (multiple choices) -- and put them on the correct screens, etc.  I created a new Behavior with them and mapped them to the project.  I put the code from here (https://library.adaptavist.com/entity/set-available-options-to-a-multi-select-list) into the Single Select List script field and changed the appropriate names in the script with the cases in the switch statement being the Single Select field options I want and the setOptions being the Multi Select field options I want.  I've tried this with seed data in the original fields and without (thinking the script might populate the field options).  Nothing seems to be working.  Is there anything obvious I'm doing wrong from the above information?  Thanks again.

I think I figured it out.

Jordon,

Can you please share what was the issue ? 

I removed the "package scripts.setAvailableSelectListOptions" from line 1 of the code and it works.

Thank you so much for your quick response. Much appreciated.

@jordan , i wanted to know did you create two fields where :-

1) Single Select Type and another 2) Multi select type.

So how will they act like cascading fields?

 

I have a need where i want multiselection of options in cascading type of field, is that relatable to the code you used?

 

please guide me here i am stuck.

Hi Antoine,

There is no native way to do that, as the native cascading selects are not multiple.

Regards,

Peter

Thanks for your answer

I wish I could try it but I am on Jira Cloud :(

Yes, I'm afraid Cloud can't/won't support it.

@Nic Brough _Adaptavist_ hello Nic, confirmed that MLCS add on doesn't work on Jira cloud.

Do you know how do we achieve this? could the ScriptRunner for Jira cloud help this? or coding with Jira cloud api?  

thanks!

Cloud cannot support this, it's not changed since my last comment.

Like robin Jiao likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you