Hi,
I am currently using smart values to fetch a list of issues that meet the category criteria. There are currently three categories, and I would like a message to be returned if no issues are found for a specified criteria. So if the three categories are:
Category 1
Category 2
Category 3
If the filter is for example: (fixVersion = '{{version.name}}' AND "Category[Dropdown]" = "Category 1" ORDER BY cf[10530] ASC, key ASC
and it has been added to a variable ( {{varCategory1}} )
and if there are no results returned, I would like to return a message saying no results were found under that category. Which conditional logic string would be best to achieve this?
I have tried many ways according to the documentation and haven't gotten it right as of yet, with the latest being:
{{#if(lookupIssues.size.gt(0))}} <b>No issues under this category were found</b>.{{/}}
{{#if(exists(varCategory1))}}
{{varCategory1}}{{/}}
Any assistance or suggestions would be greatly appreciated. Thanks.
Hello @Keith Vedol
Can you show us the entire rule?
Generally, after executing a Lookup Issues action you could add an Advanced Compare condition to check if the value of {{lookupIssues.size}} equals 0.
How do you expect the message to be surfaced? Are you adding it to an email?
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.