Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

1 vote


Accepted answer

Permanent link
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
Ralph Schoon selected this answer as the correct answer

0 votes

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

Permanent link
 >
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.

0 votes


Permanent link
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

0 votes


Permanent link
You should be able to use

https://<host>:<port>/<APP>/admin.action=com.ibm.team.repository.admin.serverReset

to reset the server too.

0 votes


Permanent link

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.

0 votes

Comments

Neeraja, sorry, but I don't know.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 369
× 14

Question asked: Aug 03 '12, 8:30 a.m.

Question was seen: 5,697 times

Last updated: Sep 28 '12, 8:03 a.m.

Confirmation Cancel Confirm