Is there a way to define a customfield as UNIQUE ?

In JIRA 5.0, can I set a customfield of type Text (<255 char) as UNIQUE ?

3 answers

1 accepted

1 vote

Not out of the box in JIRA. You will have to develop a new custom field type in a plugin.

0 vote

What you're asking for there is to block all custom fields after the addition of one single short-text field. That's really not a good idea, and not supported - the point of custom field types is that you CAN have many of them.

Jira certainly won't support that off-the-shelf, but it may be possible to create a custom field type that only allows one instance of itself.

I wouldn't bother though - if you really need to have one and only one instance of a custom field, then the most flexible, cheap, fast and effective option is "educate your administrators not to add more than one".

I thought he is asking about making the value unique and not the custom field itself! Development anyways ;)

Ahh, unique value, right. I didn't see that in the question, so if it's that, I apologise! (And still agree with your answer - reach for the development kit...)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

767 views 2 19
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