Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > Spira Custom Reports > column with associated Re...
Hi,
I would like to create a traceability report, with a column that shows only associated Requirements of a specific Type. To see if a Requirement is associated with a Requirement of a specific type. For example a column "Requirements Traceability Type Feature" where only associated Requirements of the type Feature are listed.
I am not sure how to customize the Report Template correct to get this output.
I tried:
<xsl:for-each select="Requirements/ArtifactLink"> <xsl:if test="((position() > 1) and (RequirementTypeName='Feature'))"> , RQ<xsl:value-of select="ArtifactId"/> </xsl:if> <xsl:if test="((position() = 1) and (RequirementTypeName='Feature'))"> RQ<xsl:value-of select="ArtifactId"/> </xsl:if> </xsl:for-each>
but got no output.
Thank you!
Hi Christine,
Unfortunately if you run the traceability report in XML format, you will see that we don't include the requirement type as one of the linked fields:
<ArtifactLink><ArtifactLinkId>1</ArtifactLinkId><ArtifactId>6</ArtifactId><ArtifactTypeId>1</ArtifactTypeId><CreatorId>2</CreatorId><CreationDate>2018-12-12T09:02:20</CreationDate><Comment>These two requirements are related</Comment><ArtifactName>Ability to delete existing books in the system</ArtifactName><ArtifactTypeName>Requirement</ArtifactTypeName><CreatorName>Fred Bloggs</CreatorName><ArtifactLinkTypeId>1</ArtifactLinkTypeId><ArtifactLinkTypeName>Related-to</ArtifactLinkTypeName><ArtifactStatusName>Developed</ArtifactStatusName><ProjectId>1</ProjectId><Properties>System.Collections.Generic.Dictionary`2[System.String,System.Reflection.PropertyInfo]</Properties></ArtifactLink>
Regards
David
And if you have any questions, please email or call us at +1 (202) 558-6885