It's all about the answers!

Ask a question

Is it posiible to change owner of the component programmactically using JAVA API?


Dashrath Kale (1542723) | asked Aug 14 '13, 9:38 a.m.
retagged Aug 14 '13, 12:17 p.m. by Te-Hsin Shih (2854)
When the component is created programmatically with JAVA API then it gets the owner as a user which created the component but we want to change the owner to project or team area. Is it possible using JAVA API ?

2 answers



permanent link
Dashrath Kale (1542723) | answered Aug 19 '13, 2:22 a.m.

Hi Te-Hsin

Thanks for your reply but I was looking for changing the owner of the component to project or team area and I can now do it with the following method :

workspaceManager.setComponentOwnerAndVisibility(IComponentHandle ch, IAuditableHandle ah, IReadScope pscope, monitor);


permanent link
Te-Hsin Shih (2854) | answered Aug 14 '13, 4:53 p.m.
You can download the RTC SDK and the Javadoc for Java API from the the RTC download site - https://jazz.net/downloads/rational-team-concert.

The function you are looking for is -

IWorkspaceManager.renameComponent(IComponentHandle component,
            String componentName, IProgressMonitor progressMonitor)

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.