Hello!
We have a scenario of reporting Execution status for newly created "Test Execution" type. This execution type can have more than one Tests associated. This "Test Execution" is getting imported to Jira using an XML.
I am setting up an automation rule to report the number of test cases passed or failed to MS teams.
I have given the rule as below:


However, the {{Test Execution Status.count}} is always retrieved as 0 and reporting in MS team as shown below (with 0 total tests even though the number of Tests are more than 1).

"Test Execution" issue will be created every time after the DevOps execution (triggered from GitLab) completed but not the Tests.
Whereas, when I change the rule to below, it retrieves
{{Test Execution Status.count}},
{{Test Execution Status.statuses.get(0).statusCount}} and
{{Test Execution Status.statuses.get(1).statusCount}} correctly. But when new issue is created during actual run, the below rule is not working and it reports 0 in MS teams since the below one is applicable only for transitioning the issue status which is not working while creating new issue.
Can anyone please help me to fix this automation rule please?
Please let me know if you need additional information on the same.
Thanks a lot for your time and many thanks in advance!