Skip to main content
December 31, 2022
Solved

Task counter

  • December 31, 2022
  • 3 replies
  • 0 views

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?

Best answer by alexandru.boerescu

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
December 31, 2022

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

January 2, 2023

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.