Forums

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

How to use CEIL expression to round to the nearest 100

Abimbola Oye
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 22, 2025

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:

Unable to render smart values when executing this rule:
Unknown unary operator . at character position 1: .ceil

What am I doing wrong here?

2 answers

1 accepted

1 vote
Answer accepted
Abimbola Oye
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 22, 2025

my setupScreenshot 2025-04-22 100922.png

Bola Oye April 22, 2025

Can someone help me navigate the problem. I still have the error message:

I got the error message:

Unable to render smart values when executing this rule:
Unknown unary operator . at character position 1: .ceil
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.
April 22, 2025

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events