Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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!

0 votes



One answer

Permanent link
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!

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,984

Question asked: Jun 08 '10, 10:53 a.m.

Question was seen: 4,965 times

Last updated: Jun 08 '10, 10:53 a.m.

Confirmation Cancel Confirm