RPE : Requirement Count in a module RDNG
Guindo Niamkey Jean Frederic (29●3●18)
| asked Nov 08 '16, 5:59 a.m.
edited Nov 10 '16, 8:02 p.m. by Donald Nong (14.5k●6●14)
I have a RDNG module with many object. Each Object has an Object Type which can be one of the following ( Information, Heading, Requirement).
How do to count the number of object Requirement in a module? It's emergency for me |
Accepted answer
You can check if dataSource/artifact/collaboration/attributes/objectType/name returns "Requirement". If so, increment the variable as shown in the screen shot.
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. Guindo Niamkey Jean Frederic selected this answer as the correct answer
|
4 other answers
You can have a (internal) variable and increment it if object type is requirement.
Comments
Guindo Niamkey Jean Frederic
commented Nov 08 '16, 6:36 a.m.
Thanks
Guindo Niamkey Jean Frederic
commented Nov 10 '16, 12:16 p.m.
Hi Pilar,
Subramanya Prasad Pilar
commented Nov 10 '16, 12:28 p.m.
Guindo Niamkey Jean Frederic
commented Nov 11 '16, 11:48 a.m.
Hi Pilar,
|
Please find the sample template which prints headings count and requirements count. We have the condition format == "Text" - which will include only Text artifacts. When isHeading == "true", _countHeading is incremented and if isHeading != "true", _countReq is incremented. I might be wrong in understanding the requirement correctly. Please do the modifications and give a try. You can use the module URI (https://server:9443/rm/publish/modules?resourceURI=_9817413064c54f4f82c57353884b5e84) for document generation.
Comments Hi Pilar,
Subramanya Prasad Pilar
commented Nov 15 '16, 2:24 a.m.
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?
Guindo Niamkey Jean Frederic
commented Nov 16 '16, 1:11 p.m.
Hi Pilar,
Subramanya Prasad Pilar
commented Nov 17 '16, 2:24 a.m.
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"?
Guindo Niamkey Jean Frederic
commented Nov 17 '16, 1:29 p.m.
Hi Pilar,
Subramanya Prasad Pilar
commented Nov 17 '16, 10:54 p.m.
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.
Guindo Niamkey Jean Frederic
commented Nov 18 '16, 4:31 a.m.
Hi Pilar,
showing 5 of 7
show 2 more comments
|
Guindo Niamkey Jean Frederic (29●3●18)
| answered Nov 18 '16, 4:01 a.m.
edited Nov 18 '16, 4:26 a.m.
Hi Pilar,
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" Comments
Guindo Niamkey Jean Frederic
commented Nov 18 '16, 5:22 a.m.
Hi Pilar,
Guindo Niamkey Jean Frederic
commented Nov 18 '16, 12:05 p.m.
Thanks
|
Hi Pilar,
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.
Guindo Niamkey Jean Frederic
commented Dec 21 '16, 5:13 a.m.
Hi Pilar,
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.