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

Top Level Items, Childs and Parents

Hi!

Is it possible to set the child of a work item programmatically?
I want to create a user story and define tasks as childrens of it.
Is this possible with a plain-Java-Application?

Greetz Keagen

0 votes



2 answers

Permanent link
It works =)

0 votes


Permanent link
Is it possible to set the child of a work item programmatically?
I want to create a user story and define tasks as childrens of it.
Is this possible with a plain-Java-Application?

Yes, this is possible. Some pseudo-code:

IWorkItemClient client=...
IWorkItem story=...
IWorkItemReferences references= client.resolveWorkItemReferences(story,
monitor);
for (IWorkItem task : childTasks) {
IItemReference reference=
WorkItemLinkTypes.createWorkItemReference(task);
references.add(WorkItemEndPoints.CHILD_WORK_ITEMS, reference);
}

Please see
https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation for
more information about creating work items in a plain-Java environment.

HTH,
Patrick
Jazz Work Item Team

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,926

Question asked: Sep 26 '08, 4:00 a.m.

Question was seen: 6,048 times

Last updated: Sep 26 '08, 4:00 a.m.

Confirmation Cancel Confirm