Xray's Document Generator has a Store with the most common templates. I added "Test Plan Advanced with Cover Page" report and found out that doesn't include Preconditions for every Test.
I tried to add it in document template:
#{for d=TestExecutions[n].TestRuns[a].PreConditionsCount}
@{title=${TestExecutions[n].TestRuns[a].PreCondition[d].Type}|href=${TestExecutions[n].TestRuns[a].PreCondition[d].Definition}}
#{end}
#{end}
but found nothing after report generation. How to add PreConditions info in Test Run?