How can I make component/s single value only?

How can I make component's single select?

3 answers

1 accepted

0 votes

You can't natively.  Options though:

  1. Use a validator to refuse entry of more than one (there are several plugins on the marketplace that can provide that validator).  I'd avoid that one, as it's ugly for the users
  2. Hack the "edit" field template for component so that it is only single select.  Neat, but you have to maintain it in upgrades etc
  3. Use the Script-Runner Behaviour plugin to amend the field type 
  4. Write your own javascript to amend the field type.

I'm not averse to option 2 if you need a global change, but it does add testing burden to your upgrades.  Option 3 is probably the best one.


Anybody know what the script would be to check if component has more than one entry?

What type of script?

Groovy / Script Runner

I added a solution for the JIRA version 6.4.13 in the ticket

 JRA-12543 - Need ability to change project component field type from multi select to single selectCLOSED ,

hope it helps.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,880 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot