column with associated Requirements of one Specific type

Tuesday, July 9, 2019
Avatar

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!

1 Replies
Friday, July 12, 2019
Avatar
re: Christine Tuesday, July 9, 2019

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

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, July 9, 2019
  • Last Reply: Friday, July 12, 2019
  • Replies: 1
  • Views: 1346