My case is adding two custom fields and write it down on a third custom field.
My sum formula is:
<!-- @@Formula: ((issue.get("customfield_12107")) + (issue.get("customfield_12108"))) -->
where customfield_12107 is a transition count field.
If transtion count field is filled during transitions the formula works, but if transition count field is not filled (if its null) the formula does not work.
How my I set 0 value if the transition count field is NULL ??
Any help will be appreciated.
Levent
You should always protect your formulas against null values:
<!-- @@Formula: (issue.get("customfield_12107") == null ? 0 : issue.get("customfield_12107")) + (issue.get("customfield_12108") == null ? 0 : issue.get("customfield_12108")) -->
Hi David,
I have aonther problem opened very newly, Can you help me to overcome whit it ?
I can not send you the link of my question, could you find it under my profile ? The one ask for customfield to be calculated for just one project..
Thanks in deed.
Levent
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.