It's all about the answers!

Ask a question

How to get artifact URL from artifact ID in RM (DNG)


Sunil Kumar (2718) | asked Apr 15 '20, 11:38 p.m.
Hello

We are trying for some kind of java based tool to create a link between Test cases in QM and artifact in RM, and the input for this tool would be Test case ID and Requirement artifact ID (along with server details). So can anyone help us to get a source code for deriving the artifact URL from artifact ID., the artifact URL from the module context not from the artifact folder. Because we wanted to link the Test case to artifact inside module., not in the artifact folder.

Thank you in advance for your support.

Regards,
Sunil

2 answers



permanent link
Rakesh S (39112) | answered Apr 16 '20, 12:13 a.m.

Hi Sunil,

If u want to get the Artifact URL from the artifact within the Module context. 

Select the Module Artifact --> Share link to Artifact and you will get the URL.


Comments
Sunil Kumar commented Apr 16 '20, 10:37 p.m.
Hi Rakesh,

Thanks for your information, but we were looking for getting the URL script (eg: Java code).

Regards,
Sunil

permanent link
Kirk Woods (9158) | answered Apr 16 '20, 9:44 a.m.

 Hi Sunil,

I am with IBM Expert Labs and have done this sort of thing for customers multiple times.  While I can't give you the code without a contract, your code will need to do something similar to what is done on the screen where you bring up the base artifact and click on "Where used" to see the modules the base artifact is used in.  The module artifact is a child of the module.  The other way to go about this is to start with the module and look through the children for the artifact you want.  So, either way, you will need to know the module id since the artifact can be in multiple modules.  Information about the module API can be found at: https://jazz.net/wiki/bin/view/Main/DNGModuleApiOverview


Comments
Sunil Kumar commented Apr 16 '20, 10:36 p.m.
Hi Kirk,

Thanks for sharing the ModuleApi details, and now we have found a solution for getting the URL of artefact in Module context., yes as you mentioned one of the inpuut should be Module ID, or Module URL for getting the artefact URL in Module Context.

Regards,
Sunil

Your answer


Register or to post your answer.