Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to perform Regular Expression Check (JSU) only when field is not empty


I have a custom field called Digit in create screen. Requirement is to check if field is having only 10 digits in it. For that I have used Regular Expression Check (JSU).

But it is also checking the validations when field is empty. I need that when field is empty nothing to be checked and when it has value need to check if its having only 10 digits or not.

1 answer

1 accepted

0 votes
Answer accepted

Isn't the regex extended, in a sense you could do


Where the | pipe serves as "or". I haven't tested above but I remember I set up a couple of those before. 

Hi @Radek Dostál ,

Thanks! It worked.


Preeti Yadav

Suggest an answer

Log in or Sign up to answer