Missed Team ’24? Catch up on announcements here.

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

Math calculation in object automation fails when the result is one

Michail Kotantakis February 21, 2023

Hello community,

 

I have followed the guide provided for the math operations in object automation and i have a strange issue:

I am using the below smart values and the math operator to calculate the remaining quantity in a field called Available.

Field Total with a fixed value that and the attribute type is integer


Used field as integer with the smart value {{object.User.size}} in the automation

Available field as integer with the smart value  {{#=}} {{object.Total}} - {{object.User.size}} {{/}} in the automation

 

automation.png

Whenever the result is greater than 2 the rule runs perfect
If the result is 1, meaning i have only one user selected in the User field the automation fails with the following:

Edit Assets field attributes
Error rendering smart-values when executing this rule:
Missing parameter(s) for operator -: 10 -
What is wrong?
Thanks in advance for your help and your time.

1 answer

0 votes
Michail Kotantakis February 21, 2023

I just noticed something since i continued to check this

Any time i add a second or more users in my user's field , the values are populated with the user ids, while if i have a single user, tha value is populated with the user's name.

 

Is this something that matters or should any parameter be passed in the automation rule

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events