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.
Hi Gee, you need to apply behaviors to each field according to its type.
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
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.
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.
We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan. &nb...
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