It's all about the answers!

Ask a question

how to get the component containing a file


Hehui Liu (7052830) | asked Feb 20 '13, 7:53 a.m.
Here, we have the UUID of one code file, how could we the component which contains this code file by its UUID? Thanks a lot!

One answer



permanent link
Tim Mok (6.6k38) | answered Feb 20 '13, 9:33 a.m.
JAZZ DEVELOPER
You'll have to find a change set that contains a change for that file. The change set is set to one component and that can't change. However, the file can be moved to another component so you may find change sets that aren't from the same component.

You can search for change sets using IChangeSetCriteria to set your parameters. Then call IWorkspaceManager#findChangeSets(*).

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.