Forums

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

Is there any contact custom field only for 10 digits?

Venkat Jira Admin
Contributor
September 4, 2023

Hi,

I would like to create a custom field, which is the contact number on JSM Portal. Is there any field type to entry only numbers up to 10 digits only.

Thanks in advance.

2 answers

2 votes
Esteban Diaz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 4, 2023

Hi @Venkat Jira Admin , 

Yo can not limit the amount of character on a custom field but....

If yo create the custom field ... and add this custom field into an embebed form in your request type .... in the form you'll be able to specify  the min/max number of characters 

form1.png

I hope this has been useful to you.
I will be waiting for your comments. 😉

Cheers!


Esteban Diaz
https://www.linkedin.com/in/estebandiaz/ 

Venkat Jira Admin
Contributor
September 5, 2023

Hi @Esteban Diaz 

I didn't get the Minimum and Maximum character fields In JSM form. We are using  jira cloud premium. Please help us.

Thank you.

Esteban Diaz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2023

Hi @Venkat Jira Admin , 

Can you please share a screen shot?

The custom field your are using is it a text field, a number field? 

Cheers, 

Esteban

Venkat Jira Admin
Contributor
September 6, 2023

Hi @Esteban Diaz 

As per the added screenshot, Contact Number is Number field. Please check.

Contact number field1.png

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2023

Hi @Venkat Jira Admin 

The above will provide you with a solution.

Another option is to use a script runner behaviour, this will require the script runner app.

Example of script runner behaviour:

def field = getFieldByName("My Field Name")
if ((field?.value as String)?.length() > 70) {
field.setError("Length of the field should be less than 70 chars")
} else {
field.clearError()
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events