Skip to main content
QUERY
action(id: String!): Action

Arguments

id
String!
required

Id of the action to return.

Returns

assigned

The user the action is assigned to.

The training occurrence this action tracks, for 'TRAINING' actions.

canChangeStatus
Boolean!

Whether the action can be completed with markActionDone rather than through the module that owns it.

completedDate
DateTime

When the action was completed.

createdAt
DateTime!

When the action was created.

dueDate
DateTime

When the action is due.

id
String!

Id of the action.

name
String!

Short title of the action.

notes
String

Notes entered when the action was marked done.

orgId
String!

Id of the organization the action belongs to.

relatedId
String

Id of the related record: the inspection result for 'FINDING', the incident for 'INCIDENT', the action itself for 'TRAINING' and the equipment for 'EQUIPMENT'.

relatedType
String

The kind of record the action belongs to: one of 'INCIDENT' (Incident), 'FINDING' (Inspection finding), 'TRAINING' (Training), 'PERMIT' (Permit), 'INVENTORY' (Inventory) or 'EQUIPMENT' (Equipment).

status
String!

One of 'TODO' (To do), 'COMPLETED' (Done) or 'IN_PROGRESS' (In progress).

type
String!

One of 'CORRECTIVE' (Corrective), 'PREVENTIVE' (Preventive), 'TASK' (Task) or 'TRAINING' (Training).

Query
Variables
Response