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

DNG : Given a GC URI and Module URI, get all the Artifacts details using API

Hi Team,


I have a usecase wherein given the GC Configuration URI and Module detail, get all the artifacts details using the OSLC/Reportable APIs.

Thanks in advance.

0 votes



2 answers

Permanent link

You can try this:

//create new moduleRef for getting all artifacts located in a module
let componentUriToCreate = projectUri.split("/rm/process")[0] + "/rm/rm-projects/" + projectUri.split("project-areas/")[1] + "/components/" + componentUri.split("component/")[1]
let moduleRef = new RM.ArtifactRef(moduleUri, componentUriToCreate, undefined, 'http://www.ibm.com/xmlns/rdm/types/ArtifactFormats#Module')

// get the type and identifier of all artifacts located in the module
RM.Data.getContentsAttributes(moduleRef,[RM.Data.Attributes.ARTIFACT_TYPE, RM.Data.Attributes.IDENTIFIER], function(result){
            console.log (result.data)})

I do not know, if you need to tell the attributes as parameters in the function: RM.Data.getContentsAttributes

I think you can get more information out of the documentation: https://jazz.net/wiki/bin/view/Main/RMExtensionsAPI702#GetContentsAttributes

1 vote


Permanent link

Information about all the public ELM APIs is here https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding


0 votes

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,926

Question asked: Nov 04, 6:34 a.m.

Question was seen: 230 times

Last updated: Nov 06, 3:16 a.m.

Confirmation Cancel Confirm