I would like to ask if there is any workaround to validate a phone number?
For example, I must enter +111 1111 1111 for a custom field (Phone).
Thanks all!
You'll need to find or write a custom field add-on that provides a field that you can put the validation into.
I usually look for one of the "regex validated fields" you can find in the marketplace, as a regex (while annoyingly hard to construct or read) is a very flexible and powerful way of validating field content.
Depends on which add-on you go for.
Yes, you can do this sort of validation with ScriptRunner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply!
Would you mind to give some suggestions on how to achieve this?
Regex.Match(number, @"^(\+[0-9]{9})$")
Something like this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!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.