It's all about the answers!

Ask a question

DNG: Create an artifact through OSLC API and put it in a module


Scott Fasone (215) | asked Oct 31 '19, 1:08 p.m.
Creating artifacts through OSLC Creation Factories and updating modules through the Module Structure API is fairly straightforward, but how do you make another artifact for the module structure?

From what I've seen, whenever you make a new artifact in a module using the web interface, it makes the Core Artifact and a duplicate Module Artifact. The module structure then references both the Module Artifact in it's "uri" field and the Core Artifact in its "boundArtifact" field. I see that the Module Artifacts are generally the ones that have links, so what's the strategy to make both using the REST API? Should I just POST each requirement twice, and pick one to be the Module Artifact and the other to be the Core Artifact? Can I just make one artifact and have that be the core and module artifact?

One answer



permanent link
Ian Barnard (2.3k714) | answered Nov 26 '20, 12:56 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 Hi


Since 6.0.6 you can add an existing artifact to a module structure using the module structure API - see https://jazz.net/wiki/bin/view/Main/DNGModuleApiOverview and https://jazz.net/wiki/bin/view/Main/DNGModuleAPI

So first create the core artifact, then add an entry in the module structure, referencing the core artifact.

HTH
Ian

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.