I have created the automation rule in X-ray for sending the mail whenever the test execution status shifts from To Do to Done. Now I want to show in the mail body the total number of passed and failed test cases which are present in the test execution. How to do that?
Hi @Dhiraj Kumar Sinha -- Welcome to the Atlassian Community!
Is this a question about automation in Xray or in Jira's built-in automation rules?
Kind regards,
Bill
Hi Bill, I am not sure about that. I am sending you the screenshots of the automation page. Can you please let me know whether this automation belongs to Xray or JIRA?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for those images; this appears to be a Jira automation rule.
When you want a count of issues meeting some criteria in a rule, I recommend using the Lookup Issues action with JQL on the conditions: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues
For the matching issues, the count would be the size of the list of issues:
{{lookupIssues.size|0}}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.