Skip to content

ProjectTask

Fabian Steiner edited this page Nov 4, 2026 · 2 revisions

ProjectTask

from xurrent import ProjectTask · module xurrent.project_tasks · API resource /project_tasks · Xurrent API docs

A task of a project, assigned to a team or a person.

Back to the overview

Fields

The named arguments of the constructor. Every other field of the API response is set as an attribute as well.

Field Type Default Converted to
id int
subject Optional[str] None
status Optional[str] None
category Optional[str] None
project None
manager None Person
team None Team

Class methods

get_by_id

ProjectTask.get_by_id(connection_object: XurrentApiHelper, id: int) -> T

API: GET /project_tasks/{id}

get_project_tasks

ProjectTask.get_project_tasks(connection_object: XurrentApiHelper, predefinedFilter: ProjectTaskPredefinedFilter = None, queryfilter: dict = None, max_results: Optional[int] = None) -> List[T]

API: GET /project_tasks · Enums: ProjectTaskPredefinedFilter

Static methods

update_by_id

ProjectTask.update_by_id(connection_object: XurrentApiHelper, id: int, data: dict) -> T

Methods

ref_str

project_task.ref_str() -> str

update

project_task.update(data: dict) -> T

API: PATCH /project_tasks/{id}

get_notes

project_task.get_notes(queryfilter: dict = None, sort: Optional[str] = None, max_results: Optional[int] = None) -> List[dict]

Retrieve the notes of the current project task.

  • queryfilter: Optional filter parameters (e.g. created_at, medium, person)
  • sort: Optional order, e.g. '-created_at' for the newest note first (default: ascending by id)
  • max_results: Return at most this many notes, fetching only the pages needed (default: all)
  • Returns: List of notes

API: GET /project_tasks/{id}/notes

add_note

project_task.add_note(note) -> dict

Add a note to the current project task.

  • note: Note text, or a dictionary with the note data (e.g. text, suppress_note_added_notifications)
  • Returns: The note that was added

API: POST /project_tasks/{id}/notes

Enums

ProjectTaskPredefinedFilter

Used by: ProjectTask.get_project_tasks

Value Description
finished List all finished project tasks
open List all open project tasks
managed_by_me List all project tasks of projects which manager is the API user
assigned_to_me List all project tasks that are assigned to the API user
open_to_me List all project tasks assigned to the API user with status Assigned, Accepted, In Progress or Waiting for

ProjectTaskStatus

Value Description
registered
assigned
accepted
in_progress
waiting_for
failed
rejected
completed
approved
canceled

ProjectTaskCategory

Value Description
activity
approval
milestone

Cross references

Uses:

Clone this wiki locally