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 "Shared with users" to the list of Work Package common queries
Aaron Contreras96e3c751f04c
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 525a01765bc..20518fd33ce 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -1057,6 +1057,7 @@ en:recently_created: "Recently created"all_open: "All open"summary: "Summary"+ shared_with_users: "Shared with users"jump_marks:pagination: "Jump to table pagination"label_pagination: "Click here to skip over the work packages table and go to pagination"diff --git a/frontend/src/app/shared/components/op-view-select/op-static-queries.service.ts b/frontend/src/app/shared/components/op-view-select/op-static-queries.service.tsindex 023aa1893f7..b820bb697c5 100644--- a/frontend/src/app/shared/components/op-view-select/op-static-queries.service.ts+++ b/frontend/src/app/shared/components/op-view-select/op-static-queries.service.ts@@ -44,11 +44,13 @@ interface IStaticQuery extends IOpSidemenuItem {export class StaticQueriesService {private staticQueries:IStaticQuery[] = [];- constructor(private readonly I18n:I18nService,+ constructor(+ private readonly I18n:I18nService,private readonly $state:StateService,private readonly CurrentProject:CurrentProjectService,private readonly PathHelper:PathHelperService,- private readonly CurrentUser:CurrentUserService) {+ private readonly CurrentUser:CurrentUserService,+ ) {this.staticQueries = this.buildQueries();}@@ -65,6 +67,7 @@ export class StaticQueriesService {assigned_to_me: this.I18n.t('js.work_packages.default_queries.assigned_to_me'),recently_created: this.I18n.t('js.work_packages.default_queries.recently_created'),all_open: this.I18n.t('js.work_packages.default_queries.all_open'),+ shared_with_users: this.I18n.t('js.work_packages.default_queries.shared_with_users'),summary: this.I18n.t('js.work_packages.default_queries.summary'),overdue: this.I18n.t('js.notifications.date_alerts.overdue'),};@@ -223,6 +226,15 @@ export class StaticQueriesService {},view: 'WorkPackagesTable',},+ {+ title: this.text.shared_with_users,+ uiSref: 'work-packages',+ uiParams: {+ query_id: '',+ query_props: '{"c":["id","subject","type","project"],"hi":false,"g":"","t":"updatedAt:desc,id:asc","f":[{"n":"sharedUser","o":"*","v":[]}]}',+ },+ view: 'WorkPackagesTable',+ },{title: this.text.created_by_me,uiSref: 'bim.partitioned.list',