Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to display issue count in Xporter Report?

Jeremy Jedlicka
Contributor
December 5, 2022

Hello,

I have modified the Xporter Traceability report to show only the Requirement issue types within a Version. That all works great, however the Issue totals is still showing the total issue count of the Version.  This info is coming from:

&{for issues|filter=%{${BulkIssueIndex} == 0}}
${BulkIssuesCount} Requirements Exported
&{end}

I'm trying to show the total issue count of just the Requirement IssueTypes.  I've tried:

${set(count,0)}
#{for issues}
#{if (%{'${IssueTypeName}'.equals('Requirement')})}
${set(count,%{${count} + 1})}
#{end}
#{end}

and then placed:

${Count} Requirements Exported

Anywhere I could think to put it, but the finalized report doesn't show the value for {Count}.

 

Any help with this?

 

1 answer

1 accepted

3 votes
Answer accepted
Florian Bonniec
Community Champion
December 5, 2022

Hi @Jeremy Jedlicka 

Does it display nothing or just 0 ?

 

This template works, you can adapt it for your use case.

 

&{for issues|filter=%{'${IssueTypeName}'.equals('Story')}}
#{if (%{${BulkIssueIndex} == 0})}
${set(count,0)}


#{end}


${Summary}

${set(count,%{${count} + 1})}


&{end}
${count}

 

Regards

Jeremy Jedlicka
Contributor
December 5, 2022

@Florian Bonniec You're a rockstar.  Thanks a lot!

Suggest an answer

Log in or Sign up to answer