Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Rule for sprint complete

Rania Haddadin
Contributor
June 28, 2024

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

1 answer

1 vote
Trudy Claspill
Community Champion
June 28, 2024

Hello @Rania Haddadin 

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.

 

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.
June 28, 2024

Hi @Rania Haddadin 

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

Rania Haddadin
Contributor
June 28, 2024

Here you go

 

SprintChurn.pngPredictability.pngTotal Jira Count.png

Trudy Claspill
Community Champion
June 28, 2024

Hello @Rania Haddadin 

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

Rania Haddadin
Contributor
June 28, 2024

Automation flow.jpgAutomation flow 1.jpgAutomation flow 2.jpgAutomation flow 3.jpgAutomation flow 4.jpgAutomation flow 5.jpgAutomation flow 6.jpgAutomation flow 7.jpg

Rania Haddadin
Contributor
June 28, 2024

Hope this helps

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.
June 28, 2024

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

Like Trudy Claspill likes this
Trudy Claspill
Community Champion
June 28, 2024

I concur with @Bill Sheboy . 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.

Suggest an answer

Log in or Sign up to answer