It's all about the answers!

Ask a question

Collections - what can they contain and can they be addressed via API?


Adrian Haw (2991242) | asked Mar 27 '16, 2:43 p.m.
Can a collection contain projects?

Can a collection be changed after creation (can artifacts be added and removed)?

Can a collection be accessed via the API such that its artifacts can be identified and processed by a javascript?

One answer



permanent link
Donald Nong (14.5k614) | answered Mar 27 '16, 9:03 p.m.
edited Mar 27 '16, 9:04 p.m.
You can find most of the answers in the official document.
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
Adrian Haw commented Mar 28 '16, 1:42 a.m. | edited Mar 28 '16, 3:14 a.m.

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.



Donald Nong commented Mar 28 '16, 3:18 a.m.

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.


Adrian Haw commented Mar 28 '16, 5:54 a.m.

Hi Donald
OK, thanks - looks like a project is not an artifact and therefore cannot be added to a collection.

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.