Collections - what can they contain and can they be addressed via API?
One answer
https://jazz.net/help-dev/clm/topic/com.ibm.rational.rrm.help.doc/topics/c_collections.html
For the JavaScript part, the API is quite limited and you need to explain further what you want to do with it.
https://jazz.net/wiki/bin/view/Main/RMExtensionsMain
Comments
Hi Donald
Yes, i saw the first link but it is not very clear "A collection is a set artifacts that you create for a specific purpose" - is a DNG project considered a DNG artifact for this purpose or not? If a project is not an artifact then it could not be included but if it is classed as an artifact then (by implication) it could be included. There is no mention of projects in that link, so it looks as if a collection cannot contain projects but it would be useful to get a clear answer.
For javascript API - a typical case is that you loop through the artifacts contained in the collection and do something with them (eg: check what type of artifact and if it is a module then export the content to csv). It is more a question if the API allows looping through the artifacts in a collection and identify the type of artifact to do some processing on it.
It's the first time that I have even seen a project referred to as an "artifact". If you think the Collection is a container, which contains various selected requirement artifacts, then the project is a bigger container which contains all Collection "containers" and all requirement artifacts. I don't know how you would put a project into a collection.
For the JavaScript, read the Wiki as it contains quite a few examples which shows you what you can do with the API.
Hi Donald
OK, thanks - looks like a project is not an artifact and therefore cannot be added to a collection.