RPE : Requirement Count in a module RDNG
Accepted answer
Please find modified sample template. You can use the module URI (https://server:9443/rm/publish/modules?resourceURI=_9817413064c54f4f82c57353884b5e84) as data source URI during document generation.
4 other answers
Comments
Thanks
I try quickly
Hi Pilar,
I created the internal variable _count,but how to initialize this variable to allows the count of item in module?
While inserting the variable, you can set the Default value to 0. Also, do not forget to add the condition so that _count is incremented only if it is a requirement.
Hi Pilar,
I can not count the number of items in the module.
Can you make me a tutorial? please
Comments
Hi Pilar,
Thank very much for your help
In the module, there is many object as Information,Requirement,feature,Heading,....
And I want only to do a count on the Requirement object
Is there a way to do this?
Can you provide the sample xml returned for the module url (https://server:port/rm/publish/modules?resourceURI=uuid) ? What is the dataSource/artifact/moduleContext/contextBinding/format value returned for Information object?
Hi Pilar,
the value returned for the dataSource/artifact/moduleContext/contextBinding/format is "TEXT"
In the sample template provided, all non-headings are counted as Requirement. But it looks like particular artifact type only should be counted. In DNG, I see these Artifact formats while creating Text artifact. Can you confirm which one is "Requirement object"?
Hi Pilar,
I didn't understand
Can you please provide a screen shot that shows how the Requirement object artifact was created in DNG? I can modify the sample template by creating similar artifact in my DNG instance.
Hi Pilar,
I cann't upload the screenshot, i've an error "sorry, file uploading requires reputation >60"
can you let me your email ?
I will send you on it
Find below the screenshot
I've an artifact type "Requirement" in each module "requirement Specification"
And I want count the number of artifact type "Requirement" in a module "Requirement Specification"
I checked and dataSource/artifact/collaboration/attributes/objectType/name returns only the fisrt value in module ie "Heading"
I can not browse the module, I only read the first value in "Heading"
The module is constituted of Heading, Information and Requirement
Comments
Did you try the modified sample template (DNGModuleSample_SP.dta)? I ran a quick test before uploading it and the report shows the count.
Hi Pilar,
Thank for your helps
I've some questions additionnals
I've a module with 2000 requirements
When i generate the report with the script inside template,
The waiting timeframe is long
Do you have a way to optimise this?