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
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events