Forums

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

Automation for Jira Cloud: Turning Empty Values into 0

Deleted user March 11, 2020

I'm using the following:

{{issue.Story Points}}{{^issue.Story Points}}0{{/}} - {{fieldChange.fromString}}{{^fieldChange.fromString}}0{{/}} + {{fieldChange.toString}}{{^fieldChange.toString}}0{{/}}

But I get errors when the Story Point field was empty or becomes empty. 

How do I get it to turn those empty values to 0s to use in the calculation?

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 Leaders.
June 30, 2020

Hi @[deleted] 

You can set a default value for empty fields with the pipe followed by the default:

{{issue.field|mydefault}}

 

Best regards,

Bill

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