Commit dc69a406 authored by Florie Guibert's avatar Florie Guibert

Add Epic to new filtered search in issue boards

Add negated epic filter support on issue boards
parent 2bf60538
...@@ -50,6 +50,7 @@ export default { ...@@ -50,6 +50,7 @@ export default {
'not[types]': this.filterParams.not.types, 'not[types]': this.filterParams.not.types,
'not[milestone_title]': this.filterParams.not.milestoneTitle, 'not[milestone_title]': this.filterParams.not.milestoneTitle,
'not[weight]': this.filterParams.not.weight, 'not[weight]': this.filterParams.not.weight,
'not[epic_id]': this.filterParams.not.epicId,
}, },
undefined, undefined,
); );
...@@ -141,7 +142,7 @@ export default { ...@@ -141,7 +142,7 @@ export default {
if (epicId) { if (epicId) {
filteredSearchValue.push({ filteredSearchValue.push({
type: 'epic_id', type: 'epic_id',
value: { data: epicId }, value: { data: epicId, operator: '=' },
}); });
} }
...@@ -189,6 +190,13 @@ export default { ...@@ -189,6 +190,13 @@ export default {
}); });
} }
if (this.filterParams['not[epicId]']) {
filteredSearchValue.push({
type: 'epic_id',
value: { data: this.filterParams['not[epicId]'], operator: '!=' },
});
}
if (search) { if (search) {
filteredSearchValue.push(search); filteredSearchValue.push(search);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment