Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes



2 answers

Permanent link

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.

0 votes

Comments
Hi Rakesh,

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

Regards,
Sunil


Permanent link

 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

0 votes

Comments
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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,940

Question asked: Apr 15 '20, 11:38 p.m.

Question was seen: 3,528 times

Last updated: Apr 16 '20, 10:37 p.m.

Confirmation Cancel Confirm