Extending My Works View
4 answers
yogesh.arora wrote:
Hi Yogesh, the MyWork view is not extentable. Its sections always show
work items and/or abscenses. What is it you are wishing for in these
sections?
--
Cheers Johannes
Agile Planning Team
Is it possible to add customs entries to Inbox, Current Work and
Future work section of My work view. Can someone please guide me in
this regard
Hi Yogesh, the MyWork view is not extentable. Its sections always show
work items and/or abscenses. What is it you are wishing for in these
sections?
--
Cheers Johannes
Agile Planning Team
Comments
Hi Johannes,
We are developing a review tool, and want to show "Pending Reviews" in "My Work" view, so that a developer can have a cumulative view of all his/her work in one single place.
Can you please provide some insights/articles on "My Work" view, so that I can start investigating?
If this view is not extendable, please let me know any workarounds to do so.
Which plugin does it belong to ?
Thanks in advance,
Atul
Hi Rupa,
Actually adding sections to Team Dashboard wouldn't be appropriate for our usages. This task I had completed two months back, but forgot to put that in the forum.
I could add a separate section in the "My Work" view; I had to use some restricted APIs though.
Here's how it looks now:
For creating content-implementation of this section, I had to extend AbstractPlanItemViewerSection which allowed me to add my custom entries into it. I used composite directly for this.
Following were the plugin.xml changes:
For adding a section with the "My Work" view:
<extension
point="com.ibm.team.jface.sectionPerspective">
<perspective
id="com.ibm.tr.eclipse.client.viewelements.mywork"
requiredInstance="com.ibm.team.apt.internal.ui.myWorkView"
isDefault="true"
name="Pending Reviews">
<section
id="com.ibm.tr.eclipse.client.viewelements.SectionPendingReviews"
isExpanded="true"
name="Pending Reviews"
priority="80"/>
</perspective>
</extension>
For creating section:
<extension
point="com.ibm.team.jface.expandableSection">
<expandableSection
id="com.ibm.tr.eclipse.client.viewelements.SectionPendingReviews"
requiredInstance="com.ibm.team.apt.internal.ui.myWorkView"
class="com.ibm.tr.eclipse.client.viewelements.SectionPendingReviews"
name="Pending Reviews"
isOpenable="true"
isCloneable="false"
hideChevron="true"/>
</extension>
Here, SectionPendingReviews class is an implementation class of com.ibm.team.apt.internal.ide.ui.mywork.AbstractPlanItemViewerSection
Regards,
Atul
Actually adding sections to Team Dashboard wouldn't be appropriate for our usages. This task I had completed two months back, but forgot to put that in the forum.
I could add a separate section in the "My Work" view; I had to use some restricted APIs though.
Here's how it looks now:
For creating content-implementation of this section, I had to extend AbstractPlanItemViewerSection which allowed me to add my custom entries into it. I used composite directly for this.
Following were the plugin.xml changes:
For adding a section with the "My Work" view:
<extension
point="com.ibm.team.jface.sectionPerspective">
<perspective
id="com.ibm.tr.eclipse.client.viewelements.mywork"
requiredInstance="com.ibm.team.apt.internal.ui.myWorkView"
isDefault="true"
name="Pending Reviews">
<section
id="com.ibm.tr.eclipse.client.viewelements.SectionPendingReviews"
isExpanded="true"
name="Pending Reviews"
priority="80"/>
</perspective>
</extension>
For creating section:
<extension
point="com.ibm.team.jface.expandableSection">
<expandableSection
id="com.ibm.tr.eclipse.client.viewelements.SectionPendingReviews"
requiredInstance="com.ibm.team.apt.internal.ui.myWorkView"
class="com.ibm.tr.eclipse.client.viewelements.SectionPendingReviews"
name="Pending Reviews"
isOpenable="true"
isCloneable="false"
hideChevron="true"/>
</extension>
Here, SectionPendingReviews class is an implementation class of com.ibm.team.apt.internal.ide.ui.mywork.AbstractPlanItemViewerSection
Regards,
Atul