Repository navigation
Risk
from xurrent import Risk · module xurrent.risks · API resource /risks · Xurrent API docs
A risk that could affect services, projects or organizations.
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 |
RiskStatus (unknown values stay text) |
severity |
Optional[str] |
None |
RiskSeverity (unknown values stay text) |
manager |
None |
Person |
Risk.get_by_id(connection_object: XurrentApiHelper, id: int) -> TAPI: GET /risks/{id}
Risk.get_risks(connection_object: XurrentApiHelper, predefinedFilter: RiskPredefinedFilter = None, queryfilter: dict = None) -> List[T]API: GET /risks · Enums: RiskPredefinedFilter
Risk.create(connection_object: XurrentApiHelper, data: dict) -> TAPI: POST /risks
risk.ref_str() -> strrisk.update(data: dict) -> TAPI: PATCH /risks/{id}
risk.archive() -> TAPI: POST /risks/{id}/archive
risk.trash() -> TAPI: POST /risks/{id}/trash
risk.restore() -> TAPI: POST /risks/{id}/restore
risk.get_organizations(queryfilter: dict = None) -> ListAPI: GET /risks/{id}/organizations · Uses: Organization
risk.get_projects(queryfilter: dict = None) -> ListAPI: GET /risks/{id}/projects · Uses: Project
risk.get_services(queryfilter: dict = None) -> ListAPI: GET /risks/{id}/services · Uses: Service
Used by: Risk.get_risks
| Value | Description |
|---|---|
open |
|
closed |
Used by: Risk.status
| Value | Description |
|---|---|
anticipated |
|
materialized |
|
closed |
Risk severities are defined per account (GET /risk_severities); a risk with another severity keeps its reference as text.
Used by: Risk.severity
| Value | Description |
|---|---|
low |
|
medium |
|
high |
|
very_high |
Uses:
-
Organization:
get_organizations() -
Person:
manager -
Project:
get_projects() -
Service:
get_services()
Used by:
-
Organization:
get_risks() -
Service:
get_risks()
- 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