how to create a phone number field with country code in jira
like, +91 1234567890
Hello @Mohammed Akram Ali
Welcome to the community.
In the Create Custom Field option in Jira, the only relevant custom field we can create for phone number is a number field:-
But this doesn't support adding + or any special characters.
Thanks, But i was alred cerate in number feld And i'm faceing like this 1,234,567,890
I want Only like, 1234-567890 this pattern.
Hi, @Mohammed Akram Ali
You can use regex validator, and show error message, that entered text must be in certain format. Here you can read how yo make it:
https://confluence.atlassian.com/jirakb/using-workflow-regular-expression-check-validator-to-restrict-text-field-in-number-format-859509784.html
And here you can see examples of regex
https://regex101.com/library?orderBy=RELEVANCE&search=phone+number
It's for indian phone number:
https://regex101.com/r/lH2mN7/1
^\+(?(1))\d{1,3}?[- ]?\d{10}$|^([^0])(?(1))\d{9}?$|^([0])(?(1))\d{10}?$
@Evgenii answer on using Regular Expression as validator might help.
Tanks Man It's helpful for me
In Cloud...?
Yes, it's in Cloud
Please, read here:
It looks like you're new here. Sign in or register to get started.