Forums

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

how to handle No value using Smart value for date field

Peyush Agarwal
Contributor
April 3, 2020

So I have used Difference function to find value between 2 dates. Now in order to do error handling, if in case one of the date is missing, it starts throwing out. 

{{#=}}ROUND ((({{QA Ready - Planned.diff(QA Ready - Actual).days}} / {{Implementation Start.diff(QA Ready - Planned).days}}) * 100), 2){{/}} %

 

I have been able to use generally as : 

{{QA Actual Effort - till CQA}}{{^QA Actual Effort - till CQA}}0{{/}}

 

but unable to understand how to use along with difference function 

{{#=}}ROUND ((({{QA Ready - Planned.diff(QA Ready - Actual).days}} / {{Implementation Start.diff(QA Ready - Planned).days}}) * 100), 2){{/}} %

Please suggest 

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 29, 2020

Hi @Peyush Agarwal 

I had a similar issue with numeric values, and because smart values cannot be nested the default value feature didn't support also working with functions (such as diff).

The only work-around I found was to use IF conditions prior to my math, ensuring that all values were available or initialized prior to use.

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