It's all about the answers!

Ask a question

What are the Java APIs to create WIs from WI Template ?


Shlomit Shachor (361210) | asked Jun 08 '10, 10:53 a.m.
JAZZ DEVELOPER
Hi,

I need to create work items from a WI template via a java program. What APIs I should use to do it (a WI template exist in the project area where I want to create the WIs)?


Thanks!

One answer



permanent link
Jan Wloka (4161) | answered Jun 17 '10, 6:01 a.m.
JAZZ DEVELOPER
Hello,

depending on whether you're using templates on the client or server you want to look into

com.ibm.team.workitem.client.IWorkItemTemplateClient
com.ibm.team.workitem.common.internal.IWorkItemTemplateService

On the client side you can create a template client as follows
IWorkItemTemplateClient templateClient= (IWorkItemTemplateClient)repository.getClientLibrary(IWorkItemTemplateClient.class);

On the server, you can call getService(IWorkItemTemplateService.class) from within any AbstractService or at any type of ICommonServiceContext.

HTH,
Jan.

--
Jan Wloka
Jazz Tracking & Planning Team

Hi,

I need to create work items from a WI template via a java program. What APIs I should use to do it (a WI template exist in the project area where I want to create the WIs)?


Thanks!

Your answer


Register or to post your answer.