Repository navigation
Problem
from xurrent import Problem · module xurrent.problems · API resource /problems · Xurrent API docs
A problem: the unknown or known cause of one or more incidents, with the requests linked to it.
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 |
ProblemStatus (unknown values stay text) |
impact |
Optional[str] |
None |
ProblemImpact (unknown values stay text) |
manager |
None |
Person | |
team |
None |
Team | |
member |
None |
Person |
Problem.get_by_id(connection_object: XurrentApiHelper, id: int) -> TAPI: GET /problems/{id}
Problem.get_problems(connection_object: XurrentApiHelper, predefinedFilter: ProblemPredefinedFilter = None, queryfilter: dict = None, max_results: Optional[int] = None) -> List[T]API: GET /problems · Enums: ProblemPredefinedFilter
Problem.create(connection_object: XurrentApiHelper, data: dict) -> TAPI: POST /problems
problem.ref_str() -> strproblem.update(data: dict) -> TAPI: PATCH /problems/{id}
problem.archive() -> TAPI: POST /problems/{id}/archive
problem.trash() -> TAPI: POST /problems/{id}/trash
problem.restore() -> TAPI: POST /problems/{id}/restore
problem.get_requests(queryfilter: dict = None) -> ListAPI: GET /problems/{id}/requests · Uses: Request
problem.get_notes(queryfilter: dict = None, sort: Optional[str] = None, max_results: Optional[int] = None) -> List[dict]Retrieve the notes of the current problem.
-
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 /problems/{id}/notes
problem.add_note(note) -> dictAPI: POST /problems/{id}/notes
Used by: Problem.get_problems
| Value | Description |
|---|---|
active |
|
known_errors |
|
progress_halted |
|
solved |
|
managed_by_me |
|
assigned_to_my_team |
/problems/assigned_to_my_team |
assigned_to_my_teams |
kept unchanged for compatibility; the API answers 404 (see #37) |
assigned_to_me |
Used by: Problem.status
| Value | Description |
|---|---|
declined |
|
assigned |
|
accepted |
|
in_progress |
|
waiting_for |
|
analyzed |
|
change_requested |
|
workflow_pending |
|
on_backlog |
|
project_pending |
|
progress_halted |
|
solved |
Used by: Problem.impact
| Value | Description |
|---|---|
none |
|
low |
|
medium |
|
high |
|
top |
Uses:
Used by:
-
Workflow:
get_problems()
- 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