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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I make an Automation for advanced math to multiply and then add in to one field.

Edited

The function I am attempting is something is this:

{{#=}}{{issue.10146}} * 85 + {{issue.10147}} * 125 + {{issue.10148}} * 135 + {{issue.10149}} * 150 + {{issue.10150}} * 165 + {{issue.10151}} * 175 + {{issue.10152}} * 185 + {{issue.10153}} * 235 + {{issue.10154}} * 25 + {{issue.10155}} * 35 + {{issue.10156}} * 45 + {{issue.10157}} * 55 + {{issue.10158}} * 65 + {{issue.10159}} * 75{{/}}

These are all number fields and trying to add all these up into one number field as well.
The attempt is the multiple multiple contractors' rates by the hours needed, and add them together in one Total Cost field.

When attempting to run this rule, the audit comes back with this:

Action details:

Error rendering smart-values when executing this rule:Unknown unary operator '*' at position 1: * 85 + * 125 + * 135 + * 150 + * 165 + * 175 + * 185 + * 235 + * 25 + * 35 + * 45 + * 55 + * 65 + * 75

Thanks

1 answer

1 accepted

0 votes
Answer accepted
John McKiernan Marketplace Partner Jan 02, 2019

Hi there, 

That's a lot of numbers! So it seems the problem and solution is a simple one. 

Currently, you have the smart value written incorrectly as {{issue.10146}} 

It should be {{issue.customfield_10146}} 

If you make that change for all of the numbers, this should work for you. 

You can see more about smart values here: https://docs.automationforjira.com/working-with-issue-data/available-values.html#available-values 

Let me know if you run into any trouble! 

Cheers,

John 

Updated the rule accordingly right now, recieving the same errors. Usury operator

John McKiernan Marketplace Partner Jan 06, 2019

Hi there,

No problem, I will need to take a look into the rule config and the audit log. Keeping privacy in mind, could you please send through a support ticket with screenshots of the audit log and the rule config to our support team here:

https://codebarrel.atlassian.net/servicedesk/customer/portal/1/create/3

Thanks,

John 

Hi there, @John McKiernan 

Was there a solution that can be shared for the formula / rule error?

Thanks, and best regards,

Bill

Like Stephanie High likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍂📹 Apptoberfest demo contest roundup: vote for your favorite demos!

Hi Community! The submissions are in (and listed below) for the 🍻🍂Apptoberfest🍂🍻 Demo Competition and it’s time for you to place your votes for the best: Analytics & reporting app demo ...

271 views 7 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you