RTC custom linkType - not possible to select linkType during work item creation
I have developed an OperationParticipant which is updating the parent workitem of the saved work item. So far everything is working fine. Updating the parent is ok but we need to introduce some different custom linkTypes and update the workitems according to the used linkType.
For creating a custom linkType I referred to this manual https://www.ibm.com/developerworks/mydeveloperworks/blogs/extendingrtc/entry/newlink?lang=pt and followed the same way for deployment that I used for the OperationParticipant which is already running well. Additionally I installed the LinkType-Plugin into my Eclipse IDE.
I am able to check the new linkType "TargetWorkitem" in the workitem editor from within eclipse.
Unfortunately it is not possible to select the previously checked linkType during work item creation or edit. It neither works from within eclipse nor from the web UI. The button for adding links is simply empty, no options to select :(
Here is the plugin.xml of my linkType. Is there anything missing or wrong? I am thankful for every hint..
http://pastebin.com/NNJ4jGp4
Thanks and kind regards
Carsten
Accepted answer
you can config the type for the ADD button in the process configuration, but the type doesn't SHOW in the workitem editor itself.
my plugin.xml for my linktype
<extension
point="com.ibm.team.repository.common.linkTypes">
<linkType
constrained="false"
id="com.xx.workitem.linktype.foundin"
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="Occurring Defect(s)"
id="workitem.defect"
multiplicity="0..n">
<itemReferenceType
itemTypeName="WorkItem"
packageURI="com.ibm.team.workitem">
</itemReferenceType>
</endpoint>
</source>
</linkType>
</extension>
1. to get the type to show in the Add list in Eclipse, the plugin must be loaded into the Eclipse client
2. to get the type to show in the Add list in the Browser client, the plugin must be loaded on the server
this requires a server cold restart (with Tomcat, I delete one file and restart the server)
in batch file del tomcat\work\Catalina\localhost\ccm\built-on.txt
if you use the Eclipse plugin view, can u find your linktype plugin installed?
are there any errors listed in the server logs/ccm.log file?
note that your plugin has to be loaded in CCM, NOT JTS
Comments
I have created the plugin, still cannot see the new links. Steps: 1. Create plugin project with the similar plugin.xml as above. 2. Create feature and update site projects. 3. Install the plugin on Eclipse. Am able to see the plugin in plugin view. 4. Reset the server and restart it.
Still not able to add new link type. Please let me know if anything is missing from my steps. Thanks in Advance.
My suggestion would be to follow the RTC Extensions Workshop and try in a debug server before deploying to a production system. If it does not show in the debug sytem you typically have an issue with the plugin declaration, if it shows there but not in the deployment then check the build setting of the plugin.xml. Maybe you are not exporting vital parts?
4 other answers
I am able to check the new linkType "TargetWorkitem" in the workitem editor from within eclipse.
Unfortunately it is not possible to select the previously checked linkType during work item creation or edit. It neither works from within eclipse nor from the web UI. The button for adding links is simply empty, no options to select :(
It is possible to check the new linkType while editing the presentation,
<a href="http://tinypic.com?ref=cnc4m" target="_blank"><img src="http://i46.tinypic.com/cnc4m.jpg" border="0" alt="Image and video hosting by TinyPic"></a>
but it is not possible to choose the linkType while creating/editing a workitem
(with eclipse client - the Add-button at the bottom has no options to select)
<a href="http://tinypic.com?ref=25gxn45" target="_blank"><img src="http://i48.tinypic.com/25gxn45.jpg" border="0" alt="Image and video hosting by TinyPic"></a>
(with web client)
<a href="http://tinypic.com?ref=11c5njp" target="_blank"><img src="http://i46.tinypic.com/11c5njp.jpg" border="0" alt="Image and video hosting by TinyPic"></a>
I already restarted the server a several times and also marked it for update-site-reload. I' am afraid that my server config is somehow broken. Can someone verify that my plugin.xml is correct, so that I can eliminate a mistake here?
Thanks so far,
Carsten
Thanks Ralph.
I am able to see my new link types now.
I have a new picker (selection) dialog to add my new link type (as it is not an URL and not a work item) When I try to add my new link type, I am unale to lanunh my custom picker dialog.
Is there any extension point available where I can call my picker dialog?
Any help will be much appreciated. Thanks.