Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > Spira Custom Reports > Design traceability withi...
For a project in regulated environment I need to create a custom report showing that the requirements are propagating through software design and software architecture.
To achieve this, in the software Requirements Artifact area I've created the following structure:
SRS Requirement 1 Requirement 2 Requirement 3SAD Architecture 1 Architecture 2SDD Design 1 Design 2 Design 3 Design 4The Requirements artifacts got Component set to "Requirements", Architecture ones are "Architecture" and Design ones are set to "Design".
This is the report I want to get in the end:
This way I could easily check if there is a gap in design traceability (it would be even nicer if I could paint the empy cell in a different colour, but can live without it).
Question -how can I achieve that? I understand that I need somehow to access the component record of the linked artifact, but not quite sure how?
Can you please help me to change the code below so that it'll work as intended?
<td> <xsl:value-of select="Name"/> </td> <td> <xsl:if test="Requirements/ArtifactLink"> <xsl:for-each select="Requirements/ArtifactLink"> <xsl:if test="position() > 1 and ArtifactLink/Component = Architecture">, <br /> </xsl:if> <xsl:value-of select="ArtifactLinkTypeName"/> </xsl:for-each> </xsl:if> </td> <td> <xsl:if test="Requirements/ArtifactLink"> <xsl:for-each select="Requirements/ArtifactLink"> <xsl:if test="position() > 1 and ArtifactLink/Component = Design">, <br /> </xsl:if> <xsl:value-of select="ArtifactLinkTypeName"/> </xsl:for-each> </xsl:if> </td>
And if you have any questions, please email or call us at +1 (202) 558-6885