Hi,
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.
Cheers,
Gee
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.
Regards
Kate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Examples:
I hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Cheers,
Gee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.