Remove and Set Parent-Child relationship through plugin
Hi All,
In RTC,a parent- child relationship is set between 2 Work items.Now based on a particular condition i want to remove this linkage automatically.
for e.g. i have 2 work items A and B with parent-child Relationship. Now i want to remove B and attach it as a child to Work Item 'C'
How can i do this through plugin?
Regards,
Amit
|
One answer
from the help about ILinkType in the SDK. You will have to write a java plugin.. not javascript.
Links represent directed relationships between two endpoints, the source and target. Each endpoint is represented by an
Links have types that indicate the kind of relationship, such as duplicate or blocks. These types are specified by means of link type ids, which are expected to be unique across an entire Jazz repository, and hence are usually dotted strings that include a component name, such as "com.ibm.team.workitem.linktype.duplicateworkitem" or "com.ibm.team.workitem.linktype.blocksworkitem" from the work item component. Each link (instance) contains the appropriate link type id, and methods are provided for finding links of specified types.
The link type ids are usually not suitable for display purposes. Also, the appropriate display name might differ depending on the direction: the target being viewed from the point of view of the source, or the source being viewed from the point of view of the target. Accordingly, link types have two
An
Link types are defined to the link component using the
Link are
The link component provides for manipulation of links either client-side or server-side, using similar methods.
Comments
Amit Girme
commented Mar 20 '13, 4:47 a.m.
Hi Sam,
Thanks for the reply,
I tried different things in the plugin, but am not able to achieve this.
Sometimes it gives Stale Data exception and sometimes it just save and changes the state without giving any exception.
Now how can i break this linkage(between A(Parent)-C(child) ) and set work item C as a child of work item B through Plugin.
Can you please help me with the same?
|
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.