Unable to fetch tasks of another user in paging grid

I have created a task report. In that task report first, my tasks are displaying. I configure the task report to display the other user tasks and saved it.

But when I calling it in the interface it showing tasks that are assigned to me.

Please refer screenshot

In the below image, I  configured for another user  and save the task report

But below image you can see  it displaying another user data which is mine (bollimuntham)

 

  Discussion posts and replies are publicly visible

  • Hi Mani,
    To extract data from task report using a!queryProcessAnalytics function you can specify the report context as well.
    You can create a rule input in exp. rule of user data type and specify the intended user so that data can be fetched on the basis of provided context user.
    You may use below code for reference:

    a!queryProcessAnalytics(
    report :cons!MY_TASK_REPORTS,
    contextUsers:{ri!user},
    query:a!query(
    pagingInfo: a!pagingInfo(1,-1)
    )
    )