I'm trying to create a version of the Workbaskets / Work queues widget that shows all workbaskets for the current user instead of just workbaskets for the user's default work group or for work groups that the user is a manager of.
I'm trying to create a report similar to pyWorkBasketsInMyWorkGroupForWidget, but filter it by all Work Groups in the current Operator's Work Group List. How can I use .pyWorkGroupList of the current Operator in the filter for such a report?
I like the idea, however this isn't quite what I'm looking for. OperatorID.pyWorkbasketList only has the workbaskets that are directly added to an Operator. I'm looking to show a list of workbaskets the Operator has access to because they are the member of one or more workgroups. The out of the box widget shows workbaskets that are associated to the Operator's default work group, but I would like to show all workbaskets that the Operator can pull work from, even if they are associated with work groups that are not the Operator's default (but are among the other work groups in the Operator's work group list).
There is no out of the box UI (that I'm aware of) where end users can manage who has access to certain work baskets. However, there is an out of the box UI for managing members of a work group. We plan on having managers manage the members of their work groups and would like users to be able to navigate to view work basket queues for work groups they are members of.
I was looking at customizing the report that is used as a data source for the Work Queue widget because it seemed to be the closest thing to what I am looking for. However, if there is a better way for users to navigate to all of the work baskets they can pull work from, I'm open to other ideas.
Posted: 4 years ago
Posted: 15 Aug 2018 10:20 EDT
Michael Fede (MichaelF4652)
I ended up solving this problem by adding a new property to Data-Portal called MyWorkGroups and populating the value using the Data Transform for D_PortalContextGlobal with a comma delimited list of the user's Work Groups. Then I created a custom version of the Work Queues widget that passes this list of work groups to the report parameter instead of just the single active work group.
Since I we are in an environment with multiple applications, and I only want to show work baskets for the current application I also made a custom version of the report definition that filters on the current application's rule set name.