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

Is it possible to validate a custom field format on the customer portal


I want to ensure that when a customer is entering data into a custom field, it is the right data type/format e.g. phone numbers should be numbers maybe with special characters like + and (), and email addresses in the right field; i'm currently using text fields.

Can you please tell me if this is something i can do in JSD.



2 answers

0 votes

@Gee Udobang 


I see that you have accepted an answer but I also wanted to flag another option for you.  You could use the regex feature with ProForma Lite, a marketplace app that builds fully integrated forms within Jira (up to a maximum of 3 form templates for free).

You can apply the regex formula in the form template as displayed below:


It would appear on the portal as a normal question

Hope that helps as another option.  To be be transparent, I am from ProForma.



@Kate Caldecott finally how did you did it?

Is there a way to do that without external add-ons?

Hi Gee, you need to apply behaviors to each field according to its type.

Behaviours JSD 

If you have not used it before look this Behaviours Tutorial, I recommend you start with basic validations such as

CF.isNumber() if you want to check if is a number. or CF.length to chek the number of characters in the field. Then for email you can try with Regexp to validate email.


I hope it helps

Hi Manuel,

Thanks a lot for your response, based on your answer, i'm assuming i would need to get Scriptrunner. Just so you know that i'm not a developer. So i'm not sure i'll be able to write the scripts. Is there no way to carry out the validation in JSD and just to confirm I used 'Extension for JSD' to create the custom fields. 



Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

Safe customer notifications in Jira Service Management for compliance and privacy needs

Announcing safe customer notifications in Jira Service Management as a building block for compliance and privacy needs At Atlassian, we understand the increasing need to be assured that your data i...

340 views 1 14
Read article

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