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

Creating custom filter to include/exclude work item types in a promoted Plan View

We have tried to add custom include/exclude source to a promoted Plan view, following advice from other forum questions, but RTC indicates there is something else missing.  What is missing?  This is the source that was added into the Plan mode section:

                    <filter>
                        <filter description="include issues risks defects" id="com.ibm.team.apt.filter.includeissuesrisksdefects" implementation="com.ibm.team.apt.shared.ui.internal.filter.WorkItemTypeFilter" name="Include Issues Risks Defects">
                        <parameters>
                        <parameter key="include-types" value="com.ibm.team.workitem.workItemType.issue"/>
                        <parameter key="include-types" value="com.ibm.team.workitem.workItemType.risk"/>
                        <parameter key="include-types" value="com.ibm.team.workitem.workItemType.defect"/>
                        </parameters>
                    </filter>


This is the information RTC mentions it expects - I'm not sure what really the problem is or where to update the source and with what...

cvc-complex-type.2.4.a: Invalid content was found starting with element 'filter'. One of '{"http://com.ibm.team.apt.configuration/planModes":viewmode, "http://com.ibm.team.apt.configuration/planModes":groupmode, "http://com.ibm.team.apt.
 configuration/planModes":sortmode, "http://com.ibm.team.apt.configuration/planModes":filters, "http://com.ibm.team.apt.configuration/planModes":colors, "http://com.ibm.team.apt.configuration/planModes":columns, "http://com.ibm.team.apt.
 configuration/planModes":checks}' is expected.

0 votes



2 answers

Permanent link
I tried

            <configuration-data final="false" id="com.ibm.team.apt.configuration.planConfigurationElement" xmlns="http://com.ibm.team.apt.configuration/planConfigurationElement">
                  <filter name="My Filter"  description="include issues risks defects" id="com.ibm.team.apt.filter.includeissuesrisksdefects" implementation="com.ibm.team.apt.shared.ui.internal.filters.WorkItemTypeFilter" >
                        <parameters>
                        <parameter key="include-types" value="com.ibm.team.workitem.workItemType.issue"/>
                        <parameter key="include-types" value="com.ibm.team.workitem.workItemType.risk"/>
                        <parameter key="include-types" value="com.ibm.team.workitem.workItemType.defect"/>
                        </parameters>
                </filter>    
               
            </configuration-data>
And it actually shows up as filter. However, at least in the 5.0 Eclipse client, selecting it throws an error.

I am not sure this is really supported.

0 votes

Comments

Thanks! Doesn't need to work in Eclipse, jazz seems to indicate can be done (web at least).  Our source shows the 'configuration-data' line but it is different.  Should we update ours, to what?  Or add an additional, where?  Here is ours.  Thank you in advance!

<configuration-data final="false" id="com.ibm.team.apt.configuration.planmodes" xmlns="http://com.ibm.team.apt.configuration/planModes">
                <planmode id=   ...
                     ...
                </planmode>
                <planmode id=   ...
                     ...
                </planmode>
</configuration-data>

I don't know. I basically created a new sort and then reused the section that generated. I am not sure what this should be like. Probably planFilters? I can't find any reference how to do this, so I don't know.


Permanent link
I am not sure you can do that, however the class you refer to
com.ibm.team.apt.shared.ui.internal.filter.WorkItemTypeFilter
does not exist in the SDK.

The reason is a typo. A class
com.ibm.team.apt.shared.ui.internal.filters.WorkItemTypeFilter
does exist.

0 votes

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
× 6,118

Question asked: Sep 10 '14, 3:24 p.m.

Question was seen: 6,490 times

Last updated: Sep 12 '14, 4:15 a.m.

Confirmation Cancel Confirm