Getting an error while trying to add story points if the status of the story is Ready and story point is not equal to empty.
I am getting the list of issues via jql query in an automation rule and send the same in a report via email.
{{#=}}0{{#issues}}
{{#if(and(status.name.equals("Ready"), not(story points.equals(""))))}} + {{story points}}
{{/}}{{/}}{{/}}
I am getting an error - Missing parameter(s) for operator +: 0 + 5.0 +
That error is showing one or more of the story points are empty (or null).
Smart values are name, spacing, and case-sensitive. When an unknown one is used, that evaluates to null and often fails silently.
I believe the smart value for the field is "Story points" and not "story points". Please change both of your references to the smart value to use that and retest.
Kind regards,
Bill
Hello @Bill Sheboy
Thank you for replying back.
I changed the field to "Story points" but I am still getting the same error.
I know that there are empty story points in some issues, How can I tackle it or when story points are empty or null, we can consider 0 or leave that issue in the calculation?
I tried the following as well:
{{#=}}0{{#issues}}
{{#if(and(status.name.equals("Ready"), not(Story points.isEmpty)))}} + {{story points}}
{{/}}{{/}}{{/}}
but getting the same error getting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you please post some images to provide context:
Next, when using smart values a default value can be added when a field is empty, or null, by adding the vertical bar character followed by the value. For example:
{{issue.Story points|0}}
Finally, I am using Jira Cloud, and for my instance the smart value is "Story points". For Jira Server it could instead be "Story Points". To confirm the correct smart value for a field, please try this how-to article. Essentially you use these steps:
https://confluence.atlassian.com/automation/find-the-smart-value-for-a-field-993924665.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.