It's all about the answers!

Ask a question

Custom link type with specific source work item type


Anthony Krowiak (1111612) | asked Mar 13 '12, 11:47 a.m.
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 Name and ID respectively. This did not work. Does anybody know if this can be done and, if so, how?

13 answers



permanent link
sam detweiler (12.4k6180201) | answered Mar 22 '12, 3:15 p.m.
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

permanent link
Anthony Krowiak (1111612) | answered Mar 23 '12, 11:04 a.m.
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 opened Defect 202277 for this. It was linked as a duplicate of 160162. You may want to add yourself as a subscriber.

permanent link
Anthony Krowiak (1111612) | answered Mar 23 '12, 11:05 a.m.
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 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.

permanent link
sam detweiler (12.4k6180201) | answered Mar 23 '12, 4:58 p.m.
thanks.. subscribed

permanent link
sam detweiler (12.4k6180201) | answered Mar 27 '12, 10:01 a.m.
I posted a partial (works from eclipse) solution to the 160162 workitem.

need some help to find the web code to fix.

Sam

permanent link
Ralph Schoon (58.2k23642) | 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.

permanent link
sam detweiler (12.4k6180201) | answered Mar 27 '12, 11:51 a.m.
yeh, but ugly.. I want to try to prevent bad behavior, not spend all my time recovering from it.

permanent link
sam detweiler (12.4k6180201) | answered Mar 28 '12, 9:01 a.m.
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?

permanent link
sam detweiler (12.4k6180201) | answered Mar 28 '12, 9:22 a.m.
given a workitem, how can I find the defined workitem types for this project?

I don't see that data off a project area..

permanent link
Ralph Schoon (58.2k23642) | 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?

I don't see that data off a project area..


You need a Workitem Client/Service, i have this call in PlainJava, there should be a similar service.

IWorkItemClient.findWorkItemTypes(projectArea, monitor)

Your answer


Register or to post your answer.