Repository navigation
Project
from xurrent import Project · module xurrent.projects · API resource /projects · Xurrent API docs
A project with its phases, tasks, workflows and risks.
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 |
ProjectStatus (unknown values stay text) |
category |
Optional[str] |
None |
ProjectCategory (unknown values stay text) |
manager |
None |
Person |
Project.get_by_id(connection_object: XurrentApiHelper, id: int) -> TAPI: GET /projects/{id}
Project.get_projects(connection_object: XurrentApiHelper, predefinedFilter: ProjectPredefinedFilter = None, queryfilter: dict = None) -> List[T]API: GET /projects · Enums: ProjectPredefinedFilter
Project.create(connection_object: XurrentApiHelper, data: dict) -> TAPI: POST /projects
project.ref_str() -> strproject.update(data: dict) -> TAPI: PATCH /projects/{id}
project.archive() -> TAPI: POST /projects/{id}/archive
project.trash() -> TAPI: POST /projects/{id}/trash
project.restore() -> TAPI: POST /projects/{id}/restore
project.get_tasks(queryfilter: dict = None) -> ListAPI: GET /projects/{id}/tasks · Uses: Task
project.get_phases(queryfilter: dict = None) -> List[dict]API: GET /projects/{id}/phases
project.get_workflows(queryfilter: dict = None) -> ListAPI: GET /projects/{id}/workflows · Uses: Workflow
project.get_risks(queryfilter: dict = None) -> List[dict]API: GET /projects/{id}/risks
project.get_notes(queryfilter: dict = None, sort: Optional[str] = None, max_results: Optional[int] = None) -> List[dict]Retrieve the notes of the current project.
-
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 /projects/{id}/notes
project.add_note(note) -> dictAPI: POST /projects/{id}/notes
Used by: Project.get_projects
| Value | Description |
|---|---|
completed |
|
open |
|
managed_by_me |
Used by: Project.status
| Value | Description |
|---|---|
registered |
|
in_progress |
|
progress_halted |
|
completed |
References of the project categories of new accounts. Project categories are defined per account (GET /project_categories); a project with another category keeps its reference as text.
Used by: Project.category
| Value | Description |
|---|---|
small |
|
medium |
|
large |
Uses:
Used by:
-
Risk:
get_projects()
- XurrentApiHelper
- Calendar
- ClosureCode
- ConfigurationItem
- Contract
- CustomCollection
- CustomCollectionElement
- EffortClass
- Holiday
- KnowledgeArticle
- Organization
- OutOfOfficePeriod
- Person
- Problem
- Product
- ProductCategory
- Project
- ProjectTask
- Release
- Request
- RequestTemplate
- Risk
- Service
- ServiceInstance
- ServiceOffering
- ShopArticle
- ShopArticleCategory
- ShopOrderLine
- Site
- SkillPool
- Task
- Team
- TimeAllocation
- UiExtension
- Workflow
- WorkflowTemplate