Skip to main content
New Participant
Dec 31, 2022 5:17 PM UTC
Solved

Task counter

i have created a task report and showed in my site navignation menu . I want to show a counter icon near tasks label in the tab ? hows it is possible?

alexandru.boerescu
Employee
Dec 31, 2022 9:43 PM UTC

I've done the same with the page name of a site. See the expression below.

"My Tasks (" & a!queryProcessAnalytics(
  report: cons!AVM_MY_TASK_REPORT,
  query: a!query(
    pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 100)
  )
).totalCount & ")"

The constant is based on an ootb document active_tasks

You can get more info here: docs.appian.com/.../Task_Report_Tutorial.html

3 replies

alexandru.boerescu
Employee
Dec 31, 2022 9:43 PM UTC

I've done the same with the page name of a site. See the expression below.

"My Tasks (" & a!queryProcessAnalytics(
  report: cons!AVM_MY_TASK_REPORT,
  query: a!query(
    pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 100)
  )
).totalCount & ")"

The constant is based on an ootb document active_tasks

You can get more info here: docs.appian.com/.../Task_Report_Tutorial.html

New Participant
Jan 2, 2023 5:09 PM UTC

The only change I would suggest in the above code is batch size. It can be 1 as we are just referring total count and not the data.