How can I get all the tasks where loggedInUser is an Assignee

Certified Senior Developer

Have a task report with an "Assigned To" column which can have multiple users based on the task type.

Using queryProcessAnalytics() in one of the task reports to get the tasks where logged in user is a part of the assignees.

Using the following query filter :
a!queryFilter(field:"c1",operator:"includes",value:loggedInUser()),

But its not working as expected. How can I get all the tasks where loggedInUser is an Assignee.

Thanks in advance.

OriginalPostID-216672

OriginalPostID-216672

  Discussion posts and replies are publicly visible

Parents
  • As said by Sikhi there should be two Task Report created

    1)One the data u look for
    2)Create a context attributed to user

    In both reports add one column task id in it. So in your sail code pass the you need to add two datasubset

    One for User and One for your actual report. To both pass the value as loggedinUser and u will be getting task id from both datasubset. Use the integration function to make task id's unique and you can pass the task id to third datasubset which should be like below

    a!queryFilter(field:"c1",operator:"includes",value:local!selectedTaskId)

    This should work for you....
Reply
  • As said by Sikhi there should be two Task Report created

    1)One the data u look for
    2)Create a context attributed to user

    In both reports add one column task id in it. So in your sail code pass the you need to add two datasubset

    One for User and One for your actual report. To both pass the value as loggedinUser and u will be getting task id from both datasubset. Use the integration function to make task id's unique and you can pass the task id to third datasubset which should be like below

    a!queryFilter(field:"c1",operator:"includes",value:local!selectedTaskId)

    This should work for you....
Children
No Data