I created a customfield - WirelessRound and use the expression below to calculate the value:
{{#=}} ({{issue.customfield_13329}} / 100)* 100 {{/}}
the expression gave the correct value of 1925.
2nd Step:
I want to round the 1925 to 2000 using the expression below
{{#=}} {{issue.customfield_15030}}.ceil {{/}}
I got the error message:
What am I doing wrong here?
my setup
Can someone help me navigate the problem. I still have the error message:
I got the error message:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Abimbola Oye -- Welcome to the Atlassian Community!
There are two versions of the ceiling function: one inline (which may not help for your case) and the longer form one, ceiling(). You are trying to mix the syntaxes, which will not work.
The inline version may not work for your case because if the value is an integer, your division will become integer division, and you have the function outside of the smart value expression.
To get the nearest 100 using the ROUND() function, you may do this in one step with this expression:
{{#=}} ROUND( {{issue.customfield_13329}} / 100, 0 ) * 100 {{/}}
Kind regards,
Bill
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.