Forums

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

How to convert a jira text field into a number using smart values?

Deleted user
March 24, 2022

Hi. 


I would like the sum of several text fields (with numeric input value). I have tried something like this {{issue.value.asNumber}} + {{issue.value.asNumber}} but without any success. 

I have also tried without asNumber, and trim() and without '+'. 


Is it not possible to add two textfields and getting the result in a mathematical value?

Thanks in advance. 


Best regards, 
Sarah 

1 answer

0 votes
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 Champions.
March 24, 2022

Hi @[deleted] -- Welcome to the Atlassian Community!

In general, asNumber should perform the conversion when you reference the field's smart value correctly and use one of the supported mathematical syntaxes.

Please consider posting images of your complete automation rule and the audit log details showing the rule execution.  That may provide more context to help identify and fix this symptom.  Thanks!

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events