I am creating a report using Jasperreports but I need you to only print the group header when a condition is fulfilled, in this case a field has an exact value, the problem is that the printWhenExpression function does not work and it prints all the data even what does not meet the condition
<group name="Group1">
<groupExpression><![CDATA[$F{CEQUIPOPADRE} + $F{CEQUIPO}]]></groupExpression>
<groupHeader>
<band height="16">
<printWhenExpression><![CDATA[$F{CEQUIPO_COMP}.equals("C")]]></printWhenExpression>
<textField isBlankWhenNull="true">
<reportElement x="131" y="0" width="118" height="16" forecolor="#080000" uuid="18170f7b-0772-44a9-82f1-0428c85695f5"/>
<textElement textAlignment="Left">
<font fontName="Times New Roman" size="12" isBold="false" isItalic="false" isUnderline="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{CEQUIPO}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="2" y="0" width="127" height="16" forecolor="#080000" uuid="dcb89d30-436f-4481-a649-36189d9ffbb6"/>
<textElement textAlignment="Left">
<font fontName="Times New Roman" size="12" isBold="true" isItalic="false" isUnderline="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{CEQUIPOPADRE}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="253" y="0" width="499" height="16" forecolor="#080000" uuid="bf2a1e61-4381-4e4b-9ce0-865ff89a3d57"/>
<textElement textAlignment="Left">
<font fontName="Times New Roman" size="12" isBold="true" isItalic="false" isUnderline="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{CDESCRIPCIONEQUIPO}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="1"/>
</groupFooter>
</group>