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

Creating workitems through java code

Hi All,

I am trying to create work items through code. I got some help in the net and used the same code.

I have used this line:
IWorkItemType workItemType = workItemClient.findWorkItemType(projectArea, typeIdentifier, null);
where type identifier can be a "task" or "defect". It works fine for these 2 but not for other work item types.

What typeIdentifier do I have to pass if I want to create a work item of type Change Request. These mappings available somewhere for all the work item types?



Thanks for any help!

Regards,
Arshad

0 votes



One answer

Permanent link
It works for all types, provided you know the type identifier. The type identifier can for example be found in the Eclipse or web project administration UI:




You can see that the ID does not have to be even similar to the name of the type. In case of this project areas process a Story work item type has the ID "com.ibm.team.apt.workItemType.story".

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
× 1,221

Question asked: Mar 21 '16, 7:07 a.m.

Question was seen: 2,534 times

Last updated: Mar 21 '16, 8:10 a.m.

Confirmation Cancel Confirm