Saltar al contingut principal
GET

Llistat de tasques

Scope:projects:projects.read
https://api.holded.com/api/v2/tasks

Retorna una llista paginada de tasques del teu compte. Utilitza `status=open` per a les tasques pendents: sense estat de fet i sense arxivar. Les peticions autenticades com un usuari inclouen també els projectes privats dels quals aquest usuari és membre; les fetes amb una API key només llisten els projectes públics.

Paràmetres

Paràmetres de consulta

cursorstringopcional

Cursor opac per a la paginació. Utilitza el valor retornat a la resposta anterior

limitintegeropcional= 50

Nombre màxim de tasques a retornar per pàgina

statusstringopcional

`open`: tasques sense estat de fet i sense arxivar. `done`: tasques en un estat de fet, arxivades incloses. Sense valor, totes les tasques

"open""done"

Petició

python
import requests

url = "https://api.holded.com/api/v2/tasks?cursor=value&limit=50&status=value"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Respostes

Resposta

json
{
  "items": [
    {
      "id": "507f1f77bcf86cd799439011",
      "project_id": "string",
      "list_id": "string",
      "name": "string",
      "description": "string",
      "index": "1",
      "status": "string",
      "status_name": "string",
      "priority": 0,
      "story_points": 0,
      "type": "string",
      "start_date": "string",
      "due_date": "string",
      "archived": false,
      "updated_at": "string",
      "created_at": "string",
      "assigned_to": [
        "string"
      ],
      "comments": [
        {}
      ],
      "featured": false,
      "reference": "string"
    }
  ],
  "has_more": false,
  "cursor": "string"
}

Respostes exitoses

200Llistat de tasquesapplication/json
object
items[]object[]required
idstringrequired

Unique identifier

project_idstringrequired

Project ID

list_idstring | nullrequired

List ID

namestringrequired

Task name

descriptionstringrequired

Task description

indexstringrequired

Task index as a decimal string

statusstringrequired

Task status

status_namestring | nullrequired

The status's display name in the account, as the user sees it

priorityintegerrequired

Task priority

story_pointsnumberrequired

Story points

typestringrequired

Task type

start_datestring | nullrequired

Start date, formatted according to the account's date settings

due_datestring | nullrequired

Due date, formatted according to the account's date settings

archivedbooleanrequired

Whether the task is archived

updated_atstring | nullrequired

Last update date in ISO 8601

created_atstring | nullrequired

Creation date in ISO 8601

assigned_to[]string[]required

Assigned user IDs

comments[]object[]required

Task comments

featuredbooleanrequired

Whether the task is featured

referencestringrequired

Task reference

has_morebooleanrequired

Whether there are more items on the next page

cursorstring | nulloptional

Opaque cursor to pass as ?cursor= to fetch the next page. Null on the last page.

Respostes d'error

400Estat desconegutapplication/json
401API key no vàlida o no proporcionadaapplication/json
403Permisos insuficientsapplication/json
429Límit de sol·licituds exceditapplication/json