Jira filter does not updates when criteria removed

Rafiq Khan July 8, 2021

I have created a searcher for a custom field with a selector in its template. Everything works fine when it's simple <select ..., but if I use <aui-select ... then when I click on X to remove criteria, it's still in JQL even despite that the chip with it was removed.

#disable_html_escaping()
$!{auiparams.put("controlHeaderClass", "aui-field-text")}
#searcherEditHeader (${customField.id} ${customField.name})
<aui-select id="searcher-$customField.id" name="$customField.id" #if ($configs.styles.style) style="$configs.styles.style"#end>
    #foreach($department in $departments)
    <aui-option value="$department.getGuid()" #if($department.getGuid() == $value) selected #end>$department.getName()</aui-option>
    #end
</aui-select>
#searcherEditFooter (${customField.id} ${customField.descriptionProperty.viewHtml})
$!{auiparams.clear()}

I found that click on those X should call _removeCriteria function from CriteriaView.js but I'm not shure if it's really called. I tried to search a way how to verify it, but didn't manage to do it.

0 answers

Suggest an answer

Log in or Sign up to answer