OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add project grouping for work package version and version custiom field filter
Dombi Attilaf71737022189
diff --git a/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.htmlindex d9c89f6939d..001883e5a0f 100644--- a/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.html+++ b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.html@@ -6,6 +6,7 @@class="advanced-filters--ng-select -multi-select"[id]="'values-' + filter.id"[getOptionsFn]="autocompleterFn"+ [groupBy]="groupByFn"[classes]="{'-required-highlighting' : value.length === 0}"[virtualScroll][closeOnSelect]="false"diff --git a/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.tsindex dd259d3ed05..b500094dccf 100644--- a/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts+++ b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts@@ -64,6 +64,12 @@ export class FilterSearchableMultiselectValueComponent extends UntilDestroyedMixitemTracker = (item:HalResource):string => item.href || item.id || item.name;+ groupByFn = (item:HalResource):string|null => {+ if (!this.isVersionResource) return null;+ const project = item.definingProject as HalResource | undefined;+ return project?.name ?? null;+ };+compareByHref = compareByHref;resourceType:string|null = null;@@ -210,4 +216,9 @@ export class FilterSearchableMultiselectValueComponent extends UntilDestroyedMixconst type = _.get(this.filter.currentSchema, 'values.type', null) as string;return type && type.indexOf('User') > 0;}++ private get isVersionResource() {+ const type = _.get(this.filter.currentSchema, 'values.type', null) as string;+ return type && type.indexOf('Version') > 0;+ }}