Hi all,
I want to display all the tasks which are assigned to xyz groups.I have used process report for the same and also getting the task lists which are assigned to that xyz group and also getting same task more than 4 times for the same assignee. Can someone suggest on the same?
Thanks in advance.
Discussion posts and replies are publicly visible
this is how grid now
Is your issue is that you expect that task to show only one time? I assume you did not implement any kind of aggregation.
Is that on a DEV environment? Did you check how many active process instances there are?
I have never seen a single task instance to show up more than once in a report.
Hi Chris,thanks for the suggestion and I have looked into the process monitoring->process Activity it is one like here
Hi I have checked the report as well,I have not enabled the data from subprocess data.
The process report having report context as loggedInUser and I have written this logic for the groups.
local!report: a!queryProcessAnalytics( report: cons!CR_RPT_ACTIVE_TASKS_FOR_USER_REPORT, contextUsers: getdistinctusers( { cons!MAKER_GROUP, cons!CHECKER_GROUP, cons!MANAGER_GROUP } ), query: a!query( logicalExpression: a!queryLogicalExpression( operator: "AND", logicalExpressions: { a!queryLogicalExpression( operator: "OR", filters: { a!queryFilter( field: "c13", operator: "in", value: touniformstring( { cons!ALL_PROCESS_MODEL_NAMES, cons!APP_TXT_ALL_PROCESS_MODEL_NAMES, cons!LA_TXT_ALL_PROCESS_MODEL_NAMES, } ) ) } ),
Is this causing the issue?
I ran a few tests here and I do see the same when using contextUsers, what this is doing is pulling one task per user, when each of the 4 users have the same task (assigned to their group), it is listing one for each user.
I believe you can resolve by changing the context from users to groups, utilizing contextGroups instead. This will pull one task each for the group(s).
The only catch there will be that once the task is accepted by a user, it will drop from the report since it is no longer assigned to the entire group - which may fit your use case.?
At any rate, try changing:
contextUsers: getdistinctusers( { cons!MAKER_GROUP, cons!CHECKER_GROUP, cons!MANAGER_GROUP } ),
To:
contextGroups: { cons!MAKER_GROUP, cons!CHECKER_GROUP, cons!MANAGER_GROUP },
It looks like they beat you to it (and starting a brand new thread for some reason), and now having a different issue apparently.
Mike Schmitt said:It looks like they beat you to it (and starting a brand new thread for some reason), and now having a different issue apparently.
Phew, multiple threads make it so much easier to diagnose 1 issue :)
Chris said:multiple threads make it so much easier to diagnose 1 issue
But only when they contain no more than 2 words in the subject line ;-)
Yes,I have tried with context group , i am getting the assigned tasks to me and how can we check the process report which is of what type ( i mean whether that is user content or process context)?
If you Edit the report, the Report Context picker will be different. Does it allow you to select users, or process instances?
Okay,do i need to select the users which is belongs to the group?
No, you will not need to hard code context in the report config, this will be filtered in a!queryProcessAnalytics() with contextGroups. If you are reporting in tasks assigned to groups, you may want to just create a new report Process Report of type Task, context type Tasks assigned to group - assuming your report is currently Tasks assigned to User (since you seem to have a user picker when you open the context):
Okay thanks for the suggestion but i have created the new process report of the same type that u have mentioned and i have given report context as groups which I needed,but the thing is that I am getting the tasks which is only assigned to manager group,what might be the reason that I didn't get the other users task list(i e group of maker and checker)?