I have prepared an excel template that contains this line
#{for a=JQLIssuesCount|clause=issuetype = "Area" and project = "pippo"}
listing these fields
${JQLIssues[a].Key}
${JQLIssues[a].Components}
${JQLIssues[a].Summary}
and then the last line is
#{end}
on the Jira project I have these issue types:
1. Area
2. Attività
3. Progetto
4. Sotto Progetto
the hierarchy is that a certain number of issuetype Area has as related issues a certain number of issuetype Attività.
so I modified the XPorter commands above by writing like this:
#{for a=JQLIssuesCount|clause=issuetype = "Area" and project = "pippo"}
${JQLIssues[a].Key}
${JQLIssues[a].Components}
${JQLIssues[a].Summary}
#{for b=JQLIssuesCount|clause=(project = "pippo" and issue in linkedIssues(${JQLIssues[a].Key})) and issuetype = "Attività" ORDER BY key ASC}
${JQLIssues[b].Key}
${JQLIssues[b].Components}
${JQLIssues[b].Summary}
#{end}
#{end}
The issuetype Attività may each have one or more links to issuetype Progetto.
So I modified again the XPorter commands above by writing like this:
#{for a=JQLIssuesCount|clause=issuetype = "Area" and project = "pippo"}
${JQLIssues[a].Key}
${JQLIssues[a].Components}
${JQLIssues[a].Summary}
#{for b=JQLIssuesCount|clause=(project = "pippo" and issue in linkedIssues(${JQLIssues[a].Key})) and issuetype = "Attività" ORDER BY key ASC}
${JQLIssues[b].Key}
${JQLIssues[b].Components}
${JQLIssues[b].Summary}
#{for c=JQLIssuesCount|clause=(project = "pippo" and issue in linkedIssues(${JQLIssues[b].Key})) and issuetype = "Progetto" ORDER BY key ASC}
${JQLIssues[c].Key}
${JQLIssues[c].Components}
${JQLIssues[c].Summary}
#{end}
#{end}
#{end}
it just so happens to me that the fors nested don't show all the issues the way I'd like them to. It seems that only the first issue type Area is read, let's say key = pippo-1 and then listed only the linked issuetype of Attività type and then the further linked issuetype of Progetto type.
It seems as if the letters "a", "b" and "c" of the for cycle don't update