Skip to content

Commit

Permalink
CM-549: allow to fetch task using mutiple entity ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Feb 19, 2024
1 parent f0f6b68 commit e8b1a50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/TaskFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function TaskFilter({
label="task.source"
value={filterTextFieldValue('source')}
onChange={onChangeStringFilter('source', CONTAINS_LOOKUP)}
readOnly
/>
</Grid>
<Grid item xs={3} className={classes.item}>
Expand Down
8 changes: 7 additions & 1 deletion src/components/TaskSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { fetchTasks } from '../actions';
import trimBusinessEvent from '../utils/trimBusinessEvent';

function TaskSearcher({
rights, contribution, entityId, showFilters = true,
rights, contribution, entityId, entityIds, showFilters = true,
}) {
const history = useHistory();
const modulesManager = useModulesManager();
Expand Down Expand Up @@ -107,6 +107,12 @@ function TaskSearcher({
filter: `entityId: "${entityId}"`,
};
}
if (entityIds) {
filters.entityIds = {
value: entityIds,
filter: `entityIds: "${entityIds}"`,
};
}
return filters;
};

Expand Down

0 comments on commit e8b1a50

Please sign in to comment.