How can I validate the input format of a customfield?

Hi,

I need to control that when users edit or create an issue 2 specific customfields meet the right format:

 

Firts customfield: This customfield must contain an email and it is a Text field. I need to control that at least the format was correct. For example: "myemail@@mmm...es" must be discarded.

 

Second customfield: This customfield is a code that must meet the format expressed by the regular expression [0-9]{5}-[0-9]{5} 

Thanks in advance!

Begoña

1 answer

1 accepted

This widget could not be displayed.

Hi Begona,

I believe Kepler Custom Field plugin may help you have what you want:

https://marketplace.atlassian.com/plugins/com.keplerrominfo.jira.plugins.keplercf

One of the options they support is regex custom field.

Thanks! I've tested "regex customfields" and it works for the second field (Internal code) because this is a new customfield. I can create it usign this type of customfield. Then problem is the first one (e-mail). This is an existing customfield. This is a text field customfield and it's not possible to change its type to convert it in a "regex customfield". Isn't it?

No I don't think it's possible to convert existing custom field to a different type (there are few exceptions but in general it is not supported).

Yes. I can create a new regex customfield and after that migrate from the current customfield to the new one.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

119 views 2 0
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