Automation Rule for sprint complete
Asked by Rania Haddadin:

I am hoping someone can tell/show me what I am doing wrong.

I'm trying to automate a sprint completed report to send out an email to stakeholders when a sprint is completed and I am getting the following errors on the variables I created.

Create variable Q Error rendering smart-values when executing this rule: Missing parameter(s) for operator +: 3+

And this is what I put in the Variable name and smart value Variable name : TotalJiraCount Smart Value: {{#=}}{{NotCompletedJiraCount}}+{{CompletedJiraCount}}{{/}}

Error rendering smart-values when executing this rule: Unknown unary operator / at character position 7: ROUND(/12.0\*100,0)  
Variable name and smart value is Variable name : Predictability Smart Value: {{#=}}ROUND({{CompletedSPs}} / {{CommittedSps}} \* 100,0) {{/}}

Error rendering smart-values when executing this rule: Unknown unary operator \* at character position 10: ROUND( 0/\*100,0)  
Variable name and smart value is Variable name : Sprintchurn Smart Value: {{#=}}ROUND( {{AddedJiraCount\|0}} / {{TotalJiraCount}} \* 100,0) {{/}}

Thanks in advance for your help


Answers:
author: Trudy Claspill
body: Hello [@Rania Haddadin](/t5/user/viewprofilepage/user-id/4251567)

Whenever asking for help with an automation rule it is vital that you share screen images that show your entire automation rule and the details of the steps that are not working as you expect. It is difficult for us to help you without that information.

Also let us know your deployment type. Are you working with Jira Data Center or Jira Cloud.

Based on the information you provided, it appears that you are trying to use other smart values in your variable creations but the smart values you are trying to use have no value

The last error
> Error rendering smart-values when executing this rule: Unknown unary operator \* at character position 10: ROUND( 0/\*100,0)  
Variable name and smart value is Variable name : Sprintchurn Smart Value: {{#=}}ROUND( {{AddedJiraCount\|0}} / {{TotalJiraCount}} \* 100,0) {{/}}  
...is indicating that there is no actual value between the "/" and the "\*" operators. That is where you have specified a reference to another smart value Variable - {{TotalJiraCount}}. So, you then have to look at the step that creates that variable. That relates to the first error you documented.
> Create variable Q Error rendering smart-values when executing this rule: Missing parameter(s) for operator +: 3+
>
> And this is what I put in the Variable name and smart value Variable name : TotalJiraCount Smart Value: {{#=}}{{NotCompletedJiraCount}}+{{CompletedJiraCount}}{{/}}

In this error it is indicating there is no value determined after the "+". There you are referencing the smart value {{CompletedJiraCount}}. Assuming that is another variable, you need to look at how that variable is created.

The error you mentioned in the middle is
> Error rendering smart-values when executing this rule: Unknown unary operator / at character position 7: ROUND(/12.0\*100,0)  
Variable name and smart value is Variable name : Predictability Smart Value: {{#=}}ROUND({{CompletedSPs}} / {{CommittedSps}} \* 100,0) {{/}}  
That error is indicating no value is being determined for the item before the "/" which is where you are referencing {{CompletedSPs}}

These variables may have no value because they are not in the proper context when you are trying to use them. Or the steps where you are trying to create them are not valid. We can determine that only by seeing the entire rule.

comments: author: Bill Sheboy
body: Hi [@Rania Haddadin](/t5/user/viewprofilepage/user-id/4251567)

Adding to Trudy's suggestions:

The errors you describe indicate your created variables are empty (or incorrectly defined) in the rule. Please also include images of the actions where you define those variables.

Kind regards,  
Bill


author: Rania Haddadin
body: Here you go

![SprintChurn.png](https://community.atlassian.com/t5/image/serverpage/image-id/332480iE5333F9C27914FC3/image-size/large?v=v2&px=999 "SprintChurn.png")![Predictability.png](https://community.atlassian.com/t5/image/serverpage/image-id/332481iA02F86685E6D339C/image-size/large?v=v2&px=999 "Predictability.png")![Total Jira Count.png](https://community.atlassian.com/t5/image/serverpage/image-id/332479i6172FA4155E85ACD/image-size/large?v=v2&px=999 "Total Jira Count.png")


author: Trudy Claspill
body: Hello [@Rania Haddadin](/t5/user/viewprofilepage/user-id/4251567)

We need to see screen images that show the flow of steps in your rule, like this example:

![Screenshot 2024-06-28 at 11.36.08?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/332485i24078241A6599F93/image-size/large?v=v2&px=999 "Screenshot 2024-06-28 at 11.36.08?AM.png")


author: Rania Haddadin
body: ![Automation flow.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/332494iE6A351214EF97FEF/image-size/large?v=v2&px=999 "Automation flow.jpg")![Automation flow 1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/332495i0E6F5793E06C89D4/image-size/large?v=v2&px=999 "Automation flow 1.jpg")![Automation flow 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/332497i8DE4D99080511F13/image-size/large?v=v2&px=999 "Automation flow 2.jpg")![Automation flow 3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/332500iC3C5E23A9110014B/image-size/large?v=v2&px=999 "Automation flow 3.jpg")![Automation flow 4.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/332501iD71C3D1AD37B694E/image-size/large?v=v2&px=999 "Automation flow 4.jpg")![Automation flow 5.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/332502i3A612A49D74947AA/image-size/large?v=v2&px=999 "Automation flow 5.jpg")![Automation flow 6.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/332503i0415121A1BBE6B35/image-size/large?v=v2&px=999 "Automation flow 6.jpg")![Automation flow 7.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/332504i572D8902D4E82119/image-size/large?v=v2&px=999 "Automation flow 7.jpg")


author: Rania Haddadin
body: Hope this helps


author: Bill Sheboy
body: Smart values are name, spacing, and **case-sensitive**. I note several in your actions, rule image, and the email that appear not to match.

For example: the images show both Sprintchurn and SprintChurn. Those are not the same thing in the rule. Please review all of your variables to confirm they exactly match.

Next, please note the rule uses an **experimental** REST API endpoint in those Send Web Request actions, and such endpoints are subject to change without notice.

<https://docs.atlassian.com/software/jira/docs/api/REST/9.13.0/#api/2/project/{projectIdOrKey}/properties-getPropertiesKeys>


author: Trudy Claspill
body: I concur with [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) . The first thing you need to do is make sure that every place you are trying to use a variable you are using the exact name you gave that variable when you created it.


Tags: jira-unknown-hosting-type

unknown-hosting-type