Forums

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

Combining Two Custom Fields with a Decimal

Travis Hill
Contributor
May 6, 2025

I have an interesting scenario in which Im combining 2 custom fields using a decimal (not basic math equations +, -), The equation looks like this:

  • {{customfield_17544.asNumber.floor()}}.{{customfield_17545.asNumber.floor()}}

In theory it takes two fields and makes a number in a third so for example if customfield 17544 is 1 and customfield 17545 is 10, the result will be 1.10 but, the equation keeps dropping the last zero and reflecting 1.1 which is problematic. Any thoughts?

Screenshot 2025-05-06 at 10.25.38 AM.png

1 answer

1 vote
Bill Sheboy
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.
May 6, 2025

Hi @Travis Hill 

I hypothesize you are putting the result in a number field, and so the last digit is truncated.  Is that correct?  If you put the values in a text field I would expect the digits to be preserved.

Kind regards,
Bill

Travis Hill
Contributor
May 6, 2025

I believe it is a number field. Is a text field the only way to achieve this?

Bill Sheboy
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.
May 6, 2025

Yes, as I do not believe the built-in plain number fields have a display mask / format.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events