I am trying to extract test detail for our test cases and we have managed to do that using a template but also want to extract in the first column the item listed in the 'relates to' field under linked issues.. Currently the query states this:
"#{for l=TestRuns[n].LinksCount} #{if (%{'${TestRuns[n].Links[I].LinkType}'.equals('related to')})} ${TestRuns[n].Links[l].Key} ${TestRuns[n].Links[l].Summary} #{end}" |