Calculate different fields in automation

Bogdan Ionita
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!
March 4, 2024

Hello, 

I have 2 fields in the Epic that I want to calculate and return the result into a new field Epic Priority Score. 

The first one is called Business Value and the second Time Estimate. Both are returning data made by other calculation by automation rules. 

I used {{#=} {{issue.Business Value}} / {{issue.Time Estimate}} {{/}} but it returns no data in the Epic, remains with None.

What's the correct syntax?

Thank you,

Bogdan

2 answers

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.
March 4, 2024

Hi @Bogdan Ionita -- Welcome to the Atlassian Community!

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

What are the types of those two custom fields?

If they are numeric, the field can be used directly.  But if they are selection option fields, the value attribute must be used.  For example: {{issue.mySelectField.value}}

 

Next, smart values are name, spacing, and case-sensitive.  And sometimes they do not exactly match the displayed name on the issue views.  When the wrong smart value is used, that will return null and often fail silently.

Please use this how-to article to confirm the smart values are correct for your fields: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2024

Hi Bogdan - Welcome to the Atlassian Community!

Try just: {{issue.Business Value}} / {{issue.Time Estimate}}

 

Suggest an answer

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

Atlassian Community Events