Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Round operator usage

Ramiro Justet
Contributor
April 13, 2022

Hello everyone,

I have the following expression in a rule of automation (Jira Cloud) and I would like to get an integer value:

{{#=}}{{issue.Closed Story Counter}} / {{issue.Story Counter}} * 100{{/}}

I understand that this should be able to be done using the round operator, but I am not being able to use it correctly.

Does anyone know how I should use it in this case and if it is possible to do so?

Thanks

1 answer

1 accepted

3 votes
Answer accepted
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 13, 2022

Hi @Ramiro Justet 

I know a couple of ways to do this, one without the precision digits and one with:

  • {{issue.Closed Story Counter.divide(issue.Story Counter).multiply(100).round}}

Round() can take a precision parameter for the number of digits, which would be 0 for an integer:

  • {{#=}}round({{issue.Closed Story Counter}} / {{issue.Story Counter}} * 100, 0){{/}}

Kind regards,
Bill

Ramiro Justet
Contributor
April 13, 2022

Excellent!

It works perfectly.

Thank you very much!

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events