Forums

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

Issue Type "Number", decimal

Tiziana Pisenti
Contributor
September 30, 2024

I created a Custom Field Type "Number". I want to configure the field, so only one decimal can be entered in this field.

so only x.y and not x.yz

How can I do that? 

 

2 answers

2 votes
Muhammad Moazzam Hassan
Contributor
September 30, 2024

It is not possible to restrict.

However, via automation, you can convert the value to floor and ciel.

 

Automation smart values - math expressions | Cloud automation Cloud | Atlassian Support

0 votes
Bandarupalli Sai
Contributor
September 30, 2024

@Tiziana Pisenti - You can add a "Regular Expression Check" validator on the workflow transitions (where ever the field validation is required) to validate the format entered in the field.

Use the following regular expression to allow numbers with only one decimal place:

^\d+(\.\d{1})?$

This validation will only apply when creating or transitioning the issues. 

Suggest an answer

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

Atlassian Community Events