what is the automation formula I have added all fields, can someone help with end to end automation
Asked by a855031:

I am giving the logic could you help me give the formula for wsjf syntax![wsjf.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/340393iBA49520AB5EE55B4/image-size/large?v=v2&px=999 "wsjf.PNG")![WSJF RULE.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/340394iB58920D5498BF1D5/image-size/large?v=v2&px=999 "WSJF RULE.PNG")


Answers:
author: Bill Sheboy
body: Hi [@a855031](/t5/user/viewprofilepage/user-id/5558834)

This is the third time you have asked this same question, and repeatedly it appears you have not tried to solve the problem yourself.

This community is a place for people with similar interests to learn, and ask for / offer help on Atlassian products. **It is not a free labor pool to implement requests on demand.**

I recommend pausing to read the documentation for automation and smart value expressions to learn how to solve such needs, and then experiment to build and test your rules. If you are unable to do so, please work with your leadership team to consider hiring a fulltime Jira Administrator to support your teams.

Kind regards,  
Bill

comments: author: a855031
body: Hi Bill,

I have tried it myself but there is an error and I have made sure all fields names are correct and case sensitive also used {{/}}![error.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/340815i184281725926FA18/image-size/large?v=v2&px=999 "error.PNG")


author: Bill Sheboy
body: To diagnose a problem with a math expression in a rule, I recommend:

* Confirm the smart values are correct
* Write the values to the audit log to confirm they contain what you expect
* If that does not help...post your entire math expression as text and an image of your entire rule in your question. That will allow the community to review it for syntax errors.

Looking at that image with the error message, there is at least a missing {{/}} at the end of the expression.


author: Marc - Devoteam
body: Hi [@a855031](/t5/user/viewprofilepage/user-id/5558834)

You need to look a smart values in you automation.

You also need 2 a field where the sum of the 1st 3 options is stored

See, [jira-smart-values-math-expressions](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/)

If you place all this information in separate numeric custom fields

Example:

Fields

* Business Value
* Time
* Risk
* Cost of Delay
* Size

Sum Cost of delay value in automation should contain:

{{#=}}{{issue.Business Value}} + {{issue.Time}} + {{issue.Risk}}

The add an action to re-fetch issue data

Then the WSJF field should contain:

{{#=}}{{issue.Cost of Delay}} / {{issue.Size}}

comments: author: a855031
body: Error parsing template: Failed to close '=' tag; all field names are exactly in same case and also used {{/}}, Is it happening because my custom field name has /![error.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/340813i1E6B7445CA277768/image-size/large?v=v2&px=999 "error.PNG")


author: Marc - Devoteam
body: Hi [@a855031](/t5/user/viewprofilepage/user-id/5558834)

Then the option would be to change the name of you custom field.

Slashes are always bad news in a name, they are usually revered in an application.


Tags: cloud

jira-cloud