Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a phone number field

Mohammed Akram Ali September 8, 2023

how to create a phone number field with country code in jira

like, +91  1234567890

2 answers

1 accepted

1 vote
Answer accepted
Sanjog Sigdel
Community Champion
September 8, 2023

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:-

Screenshot from 2023-09-08 16-19-48.png

But this doesn't support adding + or any special characters.

Mohammed Akram Ali September 8, 2023

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.

Like Sanjog Sigdel likes this
Sanjog Sigdel
Community Champion
September 8, 2023

@Evgenii answer on using Regular Expression as validator might help.

2 votes
Evgenii
Community Champion
September 8, 2023

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}?$

Mohammed Akram Ali September 8, 2023

Tanks Man It's helpful for me

Mohammed Akram Ali September 8, 2023

In Cloud...?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events