It's all about the answers!

Ask a question

Programatically link work items - How & Where to start


Jeff Salk (111) | asked May 27 '09, 11:34 p.m.
Hi. I am trying to programatically create a plugin to RTC 1.0.1.1 and have set up my environment using the tutorial on https://jazz.net/wiki/bin/view/Main/ComponentDevelopmentSetup. I have also gone through the tutorial to programatically create a work item (https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation). But now I would like to programatically do more with work items - specifically link them (e.g., parent/child relationship, or any of the other linking relationships). I have also read the post at https://jazz.net/forums/viewtopic.php?t=2796 and any links it points to, but i'm still not clear on where to start. So my specific questions are:

1. How do I programatically link work items (i.e. is there a tutorial or API docs/javadocs explaining this)?

2. Are there JavaDocs available for the RTC 1.0.1.1 SDK classes?

Thanks in advance for any help,
Jeff

4 answers



permanent link
Wang Jian Qiu (2622) | answered May 28 '09, 4:21 a.m.
test

permanent link
Jeff Salk (111) | answered May 28 '09, 11:10 a.m.
test

I really hope "test" is not the answer. Wangjq, I see you have an ibm.com email address and I hope this is not considered handled now that someone has replied.

-Jeff

permanent link
Patrick Streule (4.9k21) | answered May 31 '09, 8:05 a.m.
JAZZ DEVELOPER
1. How do I programatically link work items (i.e. is there a tutorial
or API docs/javadocs explaining this)?

Please take a look at IWorkItemReferences and its JavaDoc. An example
would be:

IEndPointDescriptor endpoint= WorkItemEndPoints.ATTACHMENT;
IWorkItemReferences references= workingCopy.getReferences();
IItemReference reference=
WorkItemLinkTypes.createAttachmentReference(attachment);
references.add(endpoint, reference);

2. Are there JavaDocs available for the RTC 1.0.1.1 SDK classes?

I am not sure if we expose the generated JavaDoc somewhere. You may need
to use the JavaDoc in the source.

--
Regards,
Patrick
Jazz Work Item Team

permanent link
Jeff Salk (111) | answered Jun 04 '09, 4:38 p.m.
1. How do I programatically link work items (i.e. is there a tutorial
or API docs/javadocs explaining this)?

Please take a look at IWorkItemReferences and its JavaDoc. An example
would be:

IEndPointDescriptor endpoint= WorkItemEndPoints.ATTACHMENT;
IWorkItemReferences references= workingCopy.getReferences();
IItemReference reference=
WorkItemLinkTypes.createAttachmentReference(attachment);
references.add(endpoint, reference);

2. Are there JavaDocs available for the RTC 1.0.1.1 SDK classes?

I am not sure if we expose the generated JavaDoc somewhere. You may need
to use the JavaDoc in the source.

--
Regards,
Patrick
Jazz Work Item Team

Thanks for the reply. Regarding the source, I downloaded the RTC source. However there are hundreds of "src.zip" files, each containing source code for different packages. Is there an easier way, short of manually unzipping all of these zip files individually, to be able to get all the source code (e.g., in a form that it will compile and therefore, I can browse it in Eclipse and generate the JavaDocs)?

-Jeff

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.