It's all about the answers!

Ask a question

What am I missing from the new work item link I've created?


Neal McKegney (551121) | asked May 28 '13, 8:53 a.m.
edited May 28 '13, 8:59 a.m.
I'm trying to create a custom link between work items, but once I have everything setup I can't actually select the new link type from the work item

I used this entry on DeveloperWorks as my starting point for creating the link
https://www.ibm.com/developerworks/community/blogs/extendingrtc/entry/newlink?lang=en

I've created the plug-in project for the link, plus the feature and update site projects.  I've installed the plug-in locally in my eclipse dev environment as well.

I can see the new link type when I edit my Links presentation.  I can also see the new link type in my queries.  What am I missing to actually be able to create the link?

Here's the code from plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="com.ibm.team.repository.common.linkTypes">
      <linkType
            constrained="false"
            id="rtc_propagation_link.linkType.propagation"
            internal="false">
         <source>
            <endpoint
                  displayName="Propagate To"
                  id="propagateTo"
                  multiplicity="0..n">
               <itemReferenceType
                     itemTypeName="WorkItem"
                     packageURI="com.ibm.team.workitem">
               </itemReferenceType>
            </endpoint>
         </source>
         <target>
            <endpoint
                  displayName="Propagated From"
                  id="propagateFrom"
                  multiplicity="0..1">
               <itemReferenceType
                     itemTypeName="WorkItem"
                     packageURI="com.ibm.team.workitem">
               </itemReferenceType>
            </endpoint>
         </target>
      </linkType>
   </extension>
 
</plugin>

2 answers



permanent link
sam detweiler (12.4k6182201) | answered May 28 '13, 9:08 a.m.
If you edit the process configuration, presentation for that workitem, and select the Links presentation element, is your linktype in that list?

Comments
Neal McKegney commented May 28 '13, 9:11 a.m.

yes, it's in the list of link


sam detweiler commented May 28 '13, 11:12 a.m.

and when on a Workitem Links tab, you press 'Add', does it appear in THAT list?


Neal McKegney commented May 28 '13, 11:42 a.m.

no.  the list is being updated when i select different items in the Links presentation, but the new link type that is created never shows up.


sam detweiler commented May 28 '13, 1:44 p.m.

have u restarted Eclipse?, clean?

eclipse -clean to force the reload of all the plugins?  Shouldn't matter,
but sometimes it does.
the eclipse install will only show in Eclipse..
the server install will only show in the web.


Neal McKegney commented May 28 '13, 3:12 p.m.

hey! look at that.  the clean restart did the trick in Eclipse.  Now just to figure out the web.  Might just be that I don't know how to do a server install


sam detweiler commented May 28 '13, 3:36 p.m. | edited May 28 '13, 3:38 p.m.

On the server you need to install the repo into the  (tomcat)

server/conf/ccm/sites  subtree, and add an ini to the provisioning files folder to tell the server to load the plugin.

then restart the server cold to tell it to load plugins too.
https://serveraddress/ccm/admin/cmd/requestReset

then stopserver/startserver

note that linktypes added on the server are seen SYSTEM WIDE for ALL projects.

add your voice to enhancement 160162 to be able to limit where they are used


Neal McKegney commented May 28 '13, 4:07 p.m.

ok, so I have done that part correctly as well.  Still not seeing the links in the web client though

showing 5 of 7 show 2 more comments

permanent link
sam detweiler (12.4k6182201) | answered May 28 '13, 4:20 p.m.
edited May 28 '13, 4:30 p.m.
can u look in the server/logs/ccm.log  to make sure the plugin loaded

I've had some typographical errors on the path names and the plugin feature name that have prevented the plugin from loading

Your answer


Register or to post your answer.