Review information can be included in a configurable report. This article provides an example of a review report that includes information about the review, and its review tasks and comments.
Prerequisites
- Familiarity with SystemWeaver concepts such as Items, Parts, Attributes and Issues
- Knowledge of XML
- An installation of the SystemWeaver Explorer client (swExplorer) version R35 or later
- Assignment of the SW Architect role in the server
- There is an existing project for the review. See Setting up the Review Support Project
Example Review Setup
Example Configuration
For your report, you will need the SIDs of the relationships that you want to include. In this example, they are:
<Report> <Parameters> <Parameter caption="Section" name="p1" as="[Issue]" > <Values> <ForEach select="/issueref::IREL"> <AddValue/> </ForEach> </Values> </Parameter> </Parameters> <ForEach select="$p1"> <Text font="Heading0" >Review: #{Name}</Text> <Text/> <Text font="Heading4">Review summary</Text> <Table> <Options> <CellBorderWidth>0</CellBorderWidth> </Options> <Header color="white" /> <Columns> <IssueStatusColumn width="100" caption="Status"/> <TextColumn width="100" caption="Reporter">#{CreatedBy.Name}</TextColumn> <TextColumn width="100" caption="Performed on">#{?/objref::IREL.Select(Name).Join(', ')}, #{?/objref::IREL.Select(Version).Join(', ')}</TextColumn> </Columns> <Row/> </Table> <Text/> <Text font="Bold">Description:</Text> <Description/> <Section title="Tasks"> <Text/> <Text font="Heading4">Tasks summary</Text> <Table> <Options> <CellBorderWidth>0</CellBorderWidth> </Options> <Header color="white" /> <Columns> <NameColumn width="200" caption="Task"/> <IssueStatusColumn width="100" caption="Status"/> </Columns> <ForEachObjInIssue type="TASK"> <Row/> </ForEachObjInIssue> </Table> <ForEachObjInIssue type="TASK"> <ApplyTemplate name="TasksTemplate"/> </ForEachObjInIssue> </Section> </ForEach> <Template name="TasksTemplate"> <Section title="#{Name}"> <Text font="Heading4">Task summary</Text> <Table> <Options> <CellBorderWidth>0</CellBorderWidth> </Options> <Header color="white" /> <Columns> <IssueStatusColumn width="100" caption="Status"/> <TextColumn width="100" caption="Assigned to">#{AssignedTo.Name}</TextColumn> <TextColumn width="100" caption="Performed on">#{?/objref::ITAS.Select(Name).Join(', ')}, #{?/objref::ITAS.Select(Version).Join(', ')}</TextColumn> </Columns> <Row/> </Table> <Text/> <Text font="Bold">Description:</Text> <Description/> <If test="not /objref::COMM"> <Text>Task has no comments</Text> </If> <If test="/objref::COMM"> <Section title="Comments"> <Text/> <Table> <Options> <CellBorderWidth>0</CellBorderWidth> </Options> <Header color="white" /> <Columns> <NameColumn width="200" caption="Comment"/> <IssueStatusColumn width="100" caption="Status"/> <TextColumn width="100" caption="On item">#{?/objref::ICOM.Select(Name).Join(', ')}, #{?/objref::ICOM.Select(Version).Join(', ')}</TextColumn> </Columns> <ForEachObjInIssue type="COMM"> <Row/> </ForEachObjInIssue> </Table> </Section> </If> </Section> </Template> </Report>