It's all about the answers!

Ask a question

New Linktypes, help


sam detweiler (12.5k6195201) | asked Mar 22 '12, 1:48 p.m.
We have created a new workitem, delivery, to represent the final deliverable to the customer.. either from defect or product build. This would give us the enablement for automation as well.

then I could build links from defects in both directions past (foundin), or forward (fixedin). all without having to maintain a separate 'table' in each process area.

so, now I want to create some custom link types which would reference these two (defect, delivery), in both directions..
(and I installed the plugin on both server and client, which Ihave to says is an ugly design.. I have 6,000 clients to update!.. ugh)

so I want a 'foundin' link, and a 'fixedin' link. one end is defect, and the other end is delivery object.

but I don't see my linktype(s) in the dropdown, but the endpoints.

what am I doing wrong?

http://i427.photobucket.com/albums/pp351/sdetweil/types.jpg

4 answers



permanent link
sam detweiler (12.5k6195201) | answered Mar 22 '12, 4:29 p.m.
I am stretching the system some again it appears.. 3.0.1.1

I need two links defined that look the same under the covers, but are searchable/reportable separately..

defect workitem <- found -> delivery workitem
defect workitem <- fixed -> delivery workitem

when I have the linktype plugin with one entry with both ends described as fixed/found in.. it 'looks' right



http://i427.photobucket.com/albums/pp351/sdetweil/overviewlist.jpg
http://i427.photobucket.com/albums/pp351/sdetweil/linkslist.jpg
http://i427.photobucket.com/albums/pp351/sdetweil/addlist.jpg
   <extension>

<linkType>
<target>
<endpoint>
<itemReferenceType>
</endpoint>
</target>
<source>
<endpoint>
<itemReferenceType>
</itemReferenceType>
</endpoint>
</source>
</linkType>
</extension>


but query doesn't work,
type=defect and fixed in exists

this does work
type= defect and blocks exists

but when the plugin.xml has both links defined
   <extension

point="com.ibm.team.repository.common.linkTypes">
<linkType
id="com.ca.workitem.linktype.foundin"
constrained="false"
internal="false">
<target>
<endpoint
displayName="Found In"
id="foundin.delivery"
multiplicity="0..n">
<itemReferenceType
itemTypeName="WorkItem"
packageURI="com.ibm.team.workitem"/>
</endpoint>
</target>
<source>
<endpoint
displayName="Defect"
id="workitem.defect"
multiplicity="0..n">
<itemReferenceType
itemTypeName="WorkItem"
packageURI="com.ibm.team.workitem">
</itemReferenceType>
</endpoint>
</source>
</linkType>
</extension>
<extension
point="com.ibm.team.repository.common.linkTypes">
<linkType
id="com.ca.workitem.linktype.fixedin"
constrained="false"
internal="false">
<target>
<endpoint
displayName="Fixed In"
id="fixedin.delivery"
multiplicity="0..n">
<itemReferenceType
itemTypeName="WorkItem"
packageURI="com.ibm.team.workitem"/>
</endpoint>
</target>
<source>
<endpoint
displayName="Defect"
id="workitem.defect"
multiplicity="0..n">
<itemReferenceType
itemTypeName="WorkItem"
packageURI="com.ibm.team.workitem">
</itemReferenceType>
</endpoint>
</source>
</linkType>
</extension>


http://i427.photobucket.com/albums/pp351/sdetweil/pluginview.jpg

then things get ugly
http://i427.photobucket.com/albums/pp351/sdetweil/typelist.jpg

only one of the two link types will show in the quick info, even tho both are configured..
I can create two links on a defect workitem (selecting fixed in for one and found in for the other) but as soon as I save the workitem, they disappear from th elinks window.. but are there in the links window when the workitem is reopened.

query still doesn't work, and in the list of types in query defect appears twice( from the two links of course)
http://i427.photobucket.com/albums/pp351/sdetweil/querytype.jpg

permanent link
sam detweiler (12.5k6195201) | answered Mar 23 '12, 7:45 a.m.
nudging back to the top of the list

permanent link
sam detweiler (12.5k6195201) | answered Mar 24 '12, 12:04 p.m.
well, after thinking overnight, I've solved this problem, cause the 'defect' on the other side really has a different label.

for the 'found in' package, defects are 'occurring'
for the 'fixed in' package, defects are 'resolving'..

so that works, and queries work..

so, let me summarize
1. build plugin
2. install on server, std approach, update site, provisioning profile
3. once server is restarted and plugin loaded, edit each project config,
and add the quick information section.
4. provide an update site for eclipse client, they will have to install the plugin manually.

permanent link
sam detweiler (12.5k6195201) | answered Mar 24 '12, 12:20 p.m.
well..

got a new problem..

I created a new project..

and doah.. the new link types show there too?!.. even tho the links section in the editor details links tab does not have them checked..

AND worse they show for every workitem.. not just defect..

these are not applicable to Story, etc..

how do I resolve this.. they should NOT show for every project on this ccm at this point..

I can go into the editor details section editor layouts and turn on all but these links, and then they don't show. but this is a real pain in the rear..
(I also don't have admin authority to all the other projects on the server, so I can't fix it myself)

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.