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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

Let suppose we have one text custom field and this customfield should be in this format:
1111 **** **** 1111 - in such format, only first 4 digits and 4 last digits must be entered

How can I do this using validator?

3 answers

1 accepted

Hi @Jamil Rahimov ,

I'm probably still struggling with the understanding of your use case, so could you please provide a couple of examples for valid inputs?

Assuming the requirement is

  • start with four numbers
  • a whitespace
  • four alphanumeric values (letters or numbers)
  • another whitespace
  • another four alphanumeric values (letters or numbers)
  • another whitespace
  • end with four numbers

an expression matching this would be 



@Thorsten Letschert _Decadis AG_ 
4942 **** **** 7452
2514 **** **** 5893

Hey @Jamil Rahimov ,

if you're after the '*' symbols, please use



Like # people like this

Hi @Jamil Rahimov

@Thorsten Letschert _Decadis AG_ has the right expression from what I can see.

You could try this with ProForma Lite (free) by requiring users to match a regex pattern.

Here's what that looks like in the form builder:

Screen Recording 2020-12-01 at 14.13.55.gif

I am on the ProForma team, but thought I'd share this in case it helps get you what you need.

@Peter Preston _ProForma_ 
These are examples which this expression should check:

4942 **** **** 7452
2514 **** **** 5893

0 votes

You'll need a scripting app, or something that provides clever validators to do this.

There are several apps that provide regular expression validators, I'd reach for one of those first (unless you have a load of other needs that bigger apps like Scriptrunner or Powerscripts might help with as well as being able to provide such a validator)

@Nic Brough _Adaptavist_ 
I tried Validation based on regular expression of JWT plugin but it didn't work for me.
Maybe I wrote something wrong

That app has worked for me in the past.  I'm not a regex expert, I'd have to guess that there is something wrong in that?

Suggest an answer

Log in or Sign up to answer

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