Skip to main content

system.kanoa.cmms.getWorkOrderStatus(paramsDict)

Retrieves work order status codes configured in the system (e.g. "Open", "In Progress", "On Hold", "Closed"). Call this to populate a dropdown/selector of valid statuses, or to look up a specific status by id, name, or enabled state. All keys in paramsDict are optional � passing an empty dictionary (or omitting keys) returns all configured statuses, while supplying one or more keys filters the results to matching records.


Parameters

paramsDict Dictionary

- enabledBoolean
- workOrderStatusIdInteger
- workOrderStatusNameString

Returns

workOrderStatusData pyDataset


Example

paramsDict = {"enabled": True}
data = system.kanoa.utilities.convertDatasetToJSON(system.kanoa.cmms.getWorkOrderStatus(paramsDict))

for i, row in enumerate(data):
print 'Row %i'%i
for k,v in row.items():
print k,v

break #Just limiting to returning the columns from the first record for display purposes
>>>
Row 0
lastUpdatedBy jason on 2026-03-22
workOrderStatusName Draft
createdByUser jason
workOrderStatusColor --kcGray-30
enabled True
workOrderStatusId 1
changedDate Sun Mar 22 20:01:02 UTC 2026
createdDate Sat Feb 14 19:06:30 UTC 2026
createdBy 5
changedBy 5
sortOrder 0
reservedBySystem True
changedByUser jason
>>>