Creating custom filter to include/exclude work item types in a promoted Plan View
<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
<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
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.