How to create filter for completed tasks

Hi,

I’m creating Filter for different statuses like unassigned, assigned and completed.

How to create filter for task which are completed?
I followed blow camunda documents but not sure what is exact key-value I need to use for life cycle Status(unassigned, assigned, completed etc) for completed tasks.

Camunda doc: Filters | docs.camunda.org

@hassang

just to add additional details that I’m not accessing filters through API but creating from Camunda tasklist dashboard(UI) where we provide criteria. Thank you

Hi @mrodedra,

Filters only works with runtime instances (running Instances).
Completed tasks are finished instances so you need to use history service to retrieve.
Using REST APIs, you can do as explained in below docs (supplying true value for finished property to only include finished tasks)

thank you @hassang for the reply. Is there any way to inject response of REST API so it will display only completed task. As highlighted in attachment, when completed cases is clicked, internally it calls history service REST API and it displays all the completed tasks

Can we achieve this in Camunda so it displays only completed task for given filter?

Hi @mrodedra,

A filter in tasklist app creates a filter entity with a runtime task query so there is no way to do without changing the current implementation.