Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,126
Community Members
 
Community Events
168
Community Groups

Issue with TestExecutiona Level Defect Count in Xray Document Generator Custom Template

Hi All,

As per my project requirement need to create test execution report though X-ray Test Management. For the same i have generated customize document template using document generator. It give me all the test execution component level detail Except list of total defects associated against each test executions component. To get this defect list i have wrote following customize code.

  • Test Execution - ${Key} - Defects List

#{if (%{${TestRunsCount}===0})}

None

#{end}

#{if(%{${TestRunsCount}>0})}

#{for i=TestExecution[n].TestRunsCount}

${TestExecution[n].TestRuns[i].ExecutionDefects}

Link:{@title=${TestExecution[n].TestRuns[i].ExecutionDefects[e].Key}|href=${BaseURL}/browse/${TestExecution[n].TestRuns[i].ExecutionDefects[e].Key}}

Summary:${TestExecution[n].TestRuns[i].ExecutionDefects[e].Summary}

Status:${TestExecution[n].TestRuns[i].ExecutionDefects[e].Status}

#{end}

#{end}

This was not return any result, Please anyone help me out to correct this code ?

1 answer

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS

Atlassian Community Events