Forums

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

Error when calculating via Automation. Error rendering smart-values when executing this rule

burduli March 11, 2023

when I try to use this rule is says "

Error rendering smart-values when executing this rule:
Too many numbers or variables

, please help, what am I doing wrong? :/ 

rule :  {{#=}}({{issue.timetracking.remainingestimate}} + {{issue.timetracking.timespent}}){{/}}

1 answer

1 accepted

2 votes
Answer accepted
Alex Koxaras -Relational-
Community Champion
March 11, 2023

Hi @burduli 

Try:

{{issue.timetracking.remainingEstimateSeconds.plus(issue.timetracking.timeSpentSeconds)}}
burduli March 11, 2023

thanks ! I try this {{#=}}{{issue.timetracking.remainingEstimateSeconds.plus(issue.timetracking.timeSpentSeconds)}}/60{{/}} and it shows correct minutes, but how to display this not like a number 300 minutes, but like 5h. I am calculating this on text field.

burduli March 11, 2023

how to format this number to show like jira does on time tracking - hours and minutes.

Alex Koxaras -Relational-
Community Champion
March 11, 2023

@burduli you don't have pretty print on a text field. So you do your calculations by your self and add the "h" after the hours and "m" after minutes. The use of modulo will be handy:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/

Like burduli likes this
burduli March 11, 2023

thanks

Suggest an answer

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

Atlassian Community Events