Telephone field

Al crear una issue y cumplimentar el campo teléfono si introducimos el valor 5491133494903 se produce un errror.

"Error creating issue: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:CustomFieldValue][id,4785227][issue,768222][numbervalue,5.491133494903E12][parentkey,null][customfield,10311] (SQL Exception while executing the following:INSERT INTO customfieldvalue (ID, ISSUE, CUSTOMFIELD, PARENTKEY, STRINGVALUE, NUMBERVALUE, TEXTVALUE, DATEVALUE, VALUETYPE) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) (Data truncation: Out of range value for column 'NUMBERVALUE' at row 1))"

¿Cómo podemos hacer para poder introducir ese número de teléfono perteneciente a Argentina (Buenos Aires)?

He buscado en la documentación de Atlassian pero no me queda claro para mi versión de JIRA (v6.1.1#6155-sha1:7188aee)

3 answers

I think you have a better chance at answer if you translate this to english.

By creating an issue and complete the phone field if we introduce the value 5,491,133,494,903 one errror occurs.

"Error creating issue: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:CustomFieldValue][id,4785227][issue,768222][numbervalue,5.491133494903E12][parentkey,null][customfield,10311] (SQL Exception while executing the following:INSERT INTO customfieldvalue (ID, ISSUE, CUSTOMFIELD, PARENTKEY, STRINGVALUE, NUMBERVALUE, TEXTVALUE, DATEVALUE, VALUETYPE) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) (Data truncation: Out of range value for column 'NUMBERVALUE' at row 1))"

How can we do to enter that phone number belongs to Argentina (Buenos Aires)?
I searched Atlassian documentation but it is not clear to my version of JIRA (v6.1.1#6155-sha1:7188aee)

Thanks!

0 votes

You've set this field to be a number, but telephone numbers are not really numbers, they are effectively strings, and trying to place them into number fields won't work for the longer ones because the nnumbers fields can only hold floating point numbers up to a maximum size.

I'd add a new telephone number field of type short-text

Or, better, maybe use one of the add-ons that provides formatted telephone number support or maybe a regex field that can do some validation on the data being entered.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,894 views 19 22
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you