How to claim task in Camunda 8 self managed

Hi @StephanHaarmann. How can we claim a user task in camunda 8 self managed cluster via Rest call. If it is possible could you please provide a sample of the rest call ?

Hi @soumyaranjansahoo330,

Currently, there is no REST API for tasklist or zeebe. Therefore, you cannot claim and complete a user task via REST. Your current options are:

  1. Writing a task worker thathandles user tasks.
  2. Use the GraphQL API of tasklist

Hi @StephanHaarmann I am trying to access GraphQL API via postman.

URL- http://localhost:8080/graphql
Body -
{
tasks(query: { state: COMPLETED }) {
id
name
taskState
}
}
Header - Bearer Token

But getting 404 not found.

Could you please help me to resolve this? What is wrong in this ?

Are you running C8 via the offical docker-compose file or helm-chart? If so, the port of tasklist is 8081.

{
  tasks(query: {}) {
    name
  }
}