Getting build result linked to a work item
![]()
Hi, I am writing a RTC server-side plugin (operation participant) and would like to get the build result record linked to a work item ie. Using the "Reported against Build" link on the work item. This particular link is not defined in both WorkItemTypes.java or WorkItemEndPoints.java (in com\ibm\team\workitem\common\model). Any one know how I can do this? I can't find anything that may also list all links (from which I can look for the one I need).
Thanks. Sola |
Accepted answer
3 other answers
![]()
Nick Edgar (6.5k●7●11)
| answered Jul 17 '13, 11:27 a.m.
JAZZ DEVELOPER edited Jul 17 '13, 11:28 a.m.
For more on contributing "included in build" links to a build (via client-side API), see thread https://jazz.net/forum/questions/117259/adding-work-items-to-build-result-using-api
It involves more than just creating the links.
|
![]()
The corresponding client-side methods are all on com.ibm.team.links.client.ILinkManager, which you can get as a client library from the ITeamRepository connection.
For example, Build's (internal) WorkItemHelper class uses these as follows:
Comments Hello
Praveen, you should probably describe the context you are asking better. For example,are you developing a client or server extension.
|
![]() The build-related link types are defined by the Build component. The Work Items component doesn't know about them. Constants for them are defined in com.ibm.team.build.internal.common.links.BuildLinkTypes, i.e./** Hi, Do you know how we can do the same from a snippet because we don't see ILinkServiceLibrary on the plain libraries client size. Thanks |