It's all about the answers!

Ask a question

How can we go with view and comments data sources to generate the status and name of the artifact


anil konakalla (10112) | asked Aug 23, 6:48 a.m.
How can we go with view and comments data sources  to generate the status and name of the artifact.

but with the  DOORSNextModule  data source we  are able to generate the name and status of the artifact...

If we use the DOORSNextModule data source
for generating  the id : ds/artifact/about
for generating the type : ds/artifact/collaboration/attributes/objectType/name
for generating the status : ds/artifact/collaboration/attributes/objectType/customAttribute/literalName
Using the above we are able to print  those values
But by using the Comment and view datasources,
Here we use view datasource 
for generating  the id: ds/artifact/title
for generating the type: ds/artifact identifer
for generating the status: dataSource/info/colloboration/attributes/objectType/customAttribute/liternalName

In the second contest for generating tht stsaus we are traversing back to get into the collaboration but using the comments data source
is there any alternative to print this value ... without using the  comment data source why because using view ds we traversing back so it is not able to print here



Can you provide any link to print those valuse 



One answer



permanent link
Pierre Bentkowski (131517) | answered Aug 23, 11:02 a.m.
edited Aug 23, 11:03 a.m.
Hello

I struggle to understand the question.
Are you looking at comment at the module level or the artifacts that compose the module?
For the status, you refer to the module status or each of the artifact status?
 
If you need the details of each artifact that compose the module, but only want to have the list of artifact that are in the View
you can use this:
https://server:port/rm/publish/[artifact_format]?viewURI=id1&projectURI=id2&moduleUri=id3
Provides base resource information about the resources that the specified filter returned. You can use this URL with project filters combine with a module (?viewURI=id1&projectURI=id2&moduleUri=id3).
https://server:port/rm/publish/resources?viewURI=_E14X0U_GEeS8F9LvY4XGgg&projectURI=_CP50EE_GEeS8F9LvY4XGgg&moduleUri=_cb887c1a497e4525adb1be8f0f31172f
<ds:moduleContext>
   <rrm:contextBinding>
      <rrm:about>...
   </rrm:contextBinding>
<rrm:contextBinding>
<rrm:about>
</rrm:contextBinding>
...
</ds:moduleContext>
Parsing all the contextBinding you can use the <about> URL to do a query
on the resources datasource
That will get you all the details of the artifacts including the comments URL.





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.