RTC custom linkType - not possible to select linkType during work item creation
Hi all,
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
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
ok, starts to make sense now
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
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
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 :(
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 :(
I don't understand your text. You say it works in Eclipse then say it doesn't
If your type is missing on the web UI, then the type plugin did not load correctly on the server restart
(note that you have to do a cold start on the server to get the he plugin loaded)
The plugin MUST also be loaded in EVERY eclipse client for the type to show there as well.
Be forewarned, adding a new linktype will cause it to be added for ALL workitem types.
Ok, perhaps my text was a little bit confusing. I try to make it clear with some screenshots.
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
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.