Custom link type with specific source work item type
![]()
Is there a way to create a custom link type where the source endpoint is defined as a specific work item type? For example, our process template defines a work item type APAR. I would like to create a custom link type where the source endpoint must be an APAR work item. I tried defining the itemReferenceType for the source endpoint by setting the itemTypeName and packageURI to the APAR work item's
|
13 answers
![]()
I second that..
I want to constrain my new linktype to specific workitem types. One end is defect, and the other end is delivery (custom workitem) Sam |
![]() I second that.. I opened Defect 202277 for this. It was linked as a duplicate of 160162. You may want to add yourself as a subscriber. |
![]() I second that.. I opened Defect 202277 for this. It was linked as a duplicate of 160162. You may want to add yourself as a subscriber. I meant to say, I opened an enhancement request. |
|
![]()
I posted a partial (works from eclipse) solution to the 160162 workitem.
need some help to find the web code to fix. Sam |
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Mar 27 '12, 10:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Maybe this can help. Not sure: https://jazz.net/library/article/782
A server based precondition can prevent from saving wrong linkages. |
![]()
yeh, but ugly.. I want to try to prevent bad behavior, not spend all my time recovering from it.
|
![]()
so, we just installed my new link plugin on our test server (3.0.1.1), and altho the edit presentation master for links does NOT have these new links checked, they still show in the Add drop down for ALL projects.. because the end points are 'workitem'.. even tho its intended for a specific link only defect to custom workitem.
any way around this? |
![]()
given a workitem, how can I find the defined workitem types for this project?
I don't see that data off a project area.. |
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Mar 28 '12, 10:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER given a workitem, how can I find the defined workitem types for this project? You need a Workitem Client/Service, i have this call in PlainJava, there should be a similar service. IWorkItemClient.findWorkItemTypes(projectArea, monitor) |