It's all about the answers!

Ask a question

Extending My Works View


yogesh arora (86102) | asked Feb 17 '09, 3:11 a.m.
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

Any help would be appreciated

Yogesh

4 answers



permanent link
Atul Kumar (1872329) | answered Nov 01 '14, 5:35 p.m.
A detailed article on extending "My Works" view - https://jazz.net/library/article/1465

permanent link
Johannes Rieken (1.2k1) | answered Feb 17 '09, 6:48 a.m.
yogesh.arora wrote:
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
Atul Kumar commented Dec 18 '13, 6:13 a.m.

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


permanent link
Sreerupa Sen (1.0k4) | answered Mar 04 '14, 5:43 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
 Hi Atul,
    You could do this in the Team Dashboard view by creating a New Section of type Query and adding a query that shows you your pending reviews.
Cheers
--Rupa

permanent link
Atul Kumar (1872329) | answered Mar 04 '14, 6:10 a.m.
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

Your answer


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