It's all about the answers!

Ask a question

IBM DNG/RPE: Report Base Artifact used in a Module


Guindo Niamkey Jean Frederic (29217) | asked Nov 09 '17, 11:11 a.m.

Hi Communauty
When I created a rpe report. From a base artifact
I'm not able to see the module where used this artifact.
But when I take an artifact inside a module,
I can find the module where the artifact used how to fix this?
This very urgent for me to fix this .

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k16) | answered Nov 13 '17, 5:23 a.m.
edited Nov 13 '17, 5:24 a.m.

It is possible to create this report using RPE. You can refer the sample template I created.
Please modify the template by adding another column to print Module name where linked artifact exists. Add another "module" data source schema, set dataSource/artifact/moduleContext/contextBinding/moduleUrl as its URI and then print dataSource/artifact/title from the new module data source.

Guindo Niamkey Jean Frederic selected this answer as the correct answer

3 other answers



permanent link
Guindo Niamkey Jean Frederic (29217) | answered Nov 10 '17, 5:14 a.m.

Hi Pilar,
Thank for your helps
But i want create a report with the informations below

Requirements

Linked to

Module

Sample Req1

ExampleArtifactLinked

Module2

 

 

 

 WHERE

Sample Req1: is the artifact in module context

ExampleArtifactLinked: is a base artifact

Module2: is the module where the artifact “ExampleArtifactLinked” is used


How i can do this?
it's possible to create this report please?



permanent link
Subramanya Prasad Pilar (4.6k16) | answered Nov 09 '17, 12:37 p.m.

 "about" property (dataSource/artifact/moduleContext/contextBinding/about) provides URL information about the artifact version included in the module and "core" property provides the base artifact.
When you create a resource on DNG, it is a core artifact. When you create a resource inside a module, it creates a binding and a core artifact. If the artifact is not used in any module, it will not have any moduleContext.


Comments
Guindo Niamkey Jean Frederic commented Nov 13 '17, 4:30 a.m.

Hi Pilar,
Thank for your helps
But i want create a report with the informations below

Requirements

Linked to

Module

Sample Req1

ExampleArtifactLinked

Module2

 

 

 

 WHERE
Sample Req1: is the artifact in module context
ExampleArtifactLinked: is a base artifact
Module2: is the module where the artifact “ExampleArtifactLinked” is used
How i can do this?
it's possible to create this report please?


permanent link
Luca Sentimenti (111) | answered Feb 13 '19, 10:27 a.m.
 Hi Prasad
"about" property (dataSource/artifact/moduleContext/contextBinding/about)
looks actually working only from the artifact module perspective
If I start from the base artifact, with a query like:
RootPath +"publish/resources?projectURI=" +projectURI+"&typeName="+ArtifactType
I Always get no moduleContext regardless the base artifact is used in a module or not
My need is a report on the requirements that are not included in any module.
Any idea, pls?
Thanks and BR
Luca

Your answer


Register or to post 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.