In this exercise, you'll learn how to export epic links on an Xporter-generated file.
This is a Word template. Let's create the first page.
The layout of the page is going to be Landscape Go to -> Layout -> Orientation -> Landscape |
If you want to display the header you must create the Header using a table with 6 columns and 1 row:
Key | IssueType | Priority | Summary | Links | Epic Cases |
---|
Since all the table contents below the Header are dynamic, firstly we need to create a single row table to be the header, and below it add the &{for issues...} statement, so the Header is printed only one time.
With that done, you create another row table where the mappings will be populated:
${Key} | ${IssueTypeName} | ${Priority} | ${Summary} | ${Key} Linked issues and Epic #{if (%{'${LinksCount}'.equals(‘0’)})} Doesn't have Links #{end} #{for a=LinksCount} #{if (%{'${Links[a].IssueTypeName}'.equals('Epic')})} (Epic) - ${Links[a].Key}:${Links[a].Summary} #{end} #{if (%{!'${Links[a].IssueTypeName}'.equals('Epic')})} (Link) - ${Links[a].Key}:${Links[a].Summary} #{end} #{end} | #{if (%{'${LinksCount}'.equals(‘0’)})} Doesn't have Links #{end} #{for a=LinksCount} #{if (%{'${Links[a].IssueTypeName}'.equals('Epic')})} (Epic) - ${Links[a].Key}:${Links[a].Summary} #{for i=JQLIssuesCount|clause= "Epic Link" = ${Links[a].Key}} (Story) - ${JQLIssues[i].Key}:${JQLIssues[i].Summary} #{end} #{end} #{end} |
Now close the statement using the mapping &{end}.
We are going to explain better the two columns(Links and Epic Cases) above.
The column Links
The column Epic Cases
Below there is a sample of how the mappings will be displayed in a Word template:
Below there is a sample of how the generated file will be populated:
If you like this exercise, please share your opinion on the page by just leaving a comment or a . Your opinion is very important to us. Thank you in advance. Enjoy our product. |
Here's the Exercise 3 related files:
|