It's all about the answers!

Ask a question

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


David Retzler (8811) | asked Sep 10 '14, 3:24 p.m.
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.

2 answers



permanent link
Ralph Schoon (63.2k33646) | answered Sep 11 '14, 4:07 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

Comments
David Retzler commented Sep 11 '14, 6:11 p.m.

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>


Ralph Schoon commented Sep 12 '14, 4:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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
Ralph Schoon (63.2k33646) | answered Sep 11 '14, 3:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

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.