How to add a new category to the links tab
Hi,
I am writing a plugin for the below and need your guidance as how to achieve the below, 1) I need to add a new category "Mitigation Plan", like "Related", "Parent", to the Links section of the Links tab and I need to add work items under the newly added classification. 2) I need those added WIs to be visible in the Quick Information section in the Overview tab and I should be able to change the colors of those "mitigation plan" WIs based on the state of the parent WI. Can you guide me please. Thanks, Sany |
4 answers
Hi
There are several parts invovled: - you need to contribute your own link type (com.ibm.team.repository.common.linkTypes extension point) - depending on the type of the artifacts you want to link, you can specify your endpoints (e.g. when having and endpoint for work items, you would use <itemReferenceType itemTypeName="WorkItem" packageURI="com.ibm.team.workitem"/>) - if both endpoints are work items (according to your description, they are) and you want to be able to create such a link on the links tab in the work item editor, you have to ensure that the link type is not internal and not constrained - the links should then show up on the links tab - for the quick information, you have to configure the quick information presentations in the project area editor (Project Configuration -> Configuration Data -> Work Items (advanced)) accordingly - if you want the links to show in a special way in quick information, you have to contribute your own quick information presentation (com.ibm.team.workitem.ide.ui.quickinformationPresentation extension point) Regards Marcel Jazz Work Item team |
Hi Marcel,
Thanks for the steps, I was able to create a link of type "Mitigation Plan" but I could see the link type only in web UI and not in the eclipse client. And moreover, I am not able to add this link type to quick information as the new type is not even listed as one of the endpoints like Parent, children etc in the "quick information presentations" in the eclipse client. Below, I have pasted a part of the plugin for link type contribution, <extension> <linkType> <target> <endpoint> <itemReferenceType> </itemReferenceType></endpoint> </target> </linkType> </extension> Am I missing something? And it would be great, if you could point me to some documentation for custom quick information contribution or some code. Thanks, Sany |
Posted: Fri Dec 11, 2009 7:55 pm Subject:
Hi Marcel, Thanks for the steps, I was able to create a link of type "Mitigation Plan" but I could see the link type only in web UI and not in the eclipse client. And moreover, I am not able to add this link type to quick information as the new type is not even listed as one of the endpoints like Parent, children etc in the "quick information presentations" in the eclipse client. Below, I have pasted a part of the plugin for link type contribution, <extension> Am I missing something? And it would be great, if you could point me to some documentation for custom quick information contribution or some code. Thanks, Sany |
Hi
I just tried to add a link type and it worked fine for me in both the eclipse/UI and the web/UI. The fact that you can not see the links in the eclipse client (both when configuring quick info and in the work item editor) indicates, that the plugin having the contribution is not available on the eclipse client. The contribution is in repository common, which means both the server and the eclipse client need the plugin. Regards Marcel Jazz Work Item team |
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.