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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

smart values calculating cost of 2 fields.

Hi,

 

Where I am making a mistake? I am having 3 fields:

Change Cost = read only 

Original Estimates = to be populated

ML Estimates = to be populated

 

Automation to:

On transition

If any of value is present

calculate using smart value.

 

Smart Value:

{{#=}}{{((issue.Original Estimate}}) / 8) * 650 + (({{issue.ML Esitmates}}) / 8) * 750{{/}}

 

Cant get values or flashing unary operator. Seems like from simple calculation i have created monster that will not be working at all... 

 

Can anyone advise me on this issue?

 

Best Regards

Tomasz

 

1 answer

0 votes
Marc Koppelaar
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.
Oct 19, 2023

Hi @Tomasz Osik 

What is the automation look like and what is the current error you are getting, when the automation rule is executed?

This detail level would help the members here to see if we can find a solution for you.

Hi,

 

Thank you for response, i think i have fixed the issue by correcting equasion to:

 

{{issue.Change Cost.asCurrency("gb_GB")}}{{#=}}((({{issue.Original Estimate}} / 8) * 650) /3600)+(({{issue.ML Estimates}} / 8) * 750){{/}}

Missing brackets and i did not took into consideration that original estimates are always stored in seconds, therefore i had to divide this field by 3600second (this equates to 1 hour).... and it worked. However i cannot set up "£" currency. 

 

Is smart value correct?

 

Thanks in advance.

Like Marc Koppelaar likes this
Marc Koppelaar
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.
Oct 20, 2023

Hi @Tomasz Osik 

I think the smart value in relation to the pound sign should be en_GB instead of gb_GB

Hi,

 

Amended it... no joy so far.... will research it further

Like Marc Koppelaar likes this
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.
Oct 20, 2023

Hi @Tomasz Osik 

Adding to the earlier answer:

I am unclear why you are placing the Change Cost value next to the math operation.  Would you please explain? 

For an example, please show some example values and your expected output (field set).  Knowing that may help the community to suggest improvements.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events