WorkOrder Comments methods
WorkOrder Comments methods
WorkOrder Costing methods
Get WorkOrder Employee lists
Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
Which list (endpoint) to get. Includes Supervisors & SubmitTos.
Whether to include inactive employees in the returned list. Defaults to false.
Optional
domainIds: number[]Filter to certain domains within the Cityworks instance.
Get SubmitTo list
Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
Whether to include inactive employees in the returned list. Defaults to false.
Optional
domainIds: number[]Filter to certain domains within the Cityworks instance.
Get Supervisors list
Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
Whether to include inactive employees in the returned list. Defaults to false.
Optional
domainIds: number[]Filter to certain domains within the Cityworks instance.
Get WorkOrderSid and description for provided WorkOrderId
Returns Promise that represents an object with WorkOrderS/IDs & Description
The WorkOrderId for which to get the WorkOrderSid and description
Get WorkOrderS/IDs connected to provided entities
Returns Promise that represents an array of WorkOrderS/IDs
The entity type to find connected WorkOrders
Optional
search: (string | number)[]Any additional search properties of the WorkOrder (open/closed, etc)
Get WorkOrderSids. Defaults to true. When false, returned list is WorkOrderIds
Add entities to an existing WorkOrder
Returns object that represents a list of entities removed.
The workorder S/ID which the entities should be added to. # for SID, string for ID.
Entity info object including: (req) EntityType: {string}, (req) EntityUids: {Array
Update WorkOrder xy after adding entit(y|ies), default is true.
Cancel workorders
Returns object that represents a collection of workorders
An array of the IDs to cancel the matched workorders
Optional
cancelReason: stringA reason for cancelling the workorder(s)
Optional
dateCancelled: DateThe date/time that it should be indicated the workorder was cancelled
Combine WorkOrders
Returns object that represents a collection of WorkOrders
The workorder IDs which should be combined.
The WorkOrder ID for the single WorkOrder that should contain the info/entities from the other WorkOrders
If the WorkOrders combined into the single should then be canceled, default is true.
Create new workorders, including linkin to Requests & Inspections (optionally)
Returns Promise that represents an object describing the newly-created workorder
See /{subdirectory}/apidocs/#/data-type-infodataType=WorkOrder on the Cityworks instance
Optional
inspectionIds: number[]The inspection IDs which the workorder should be linked to.
Optional
requestIds: number[]The inspection IDs which the workorder should be linked to.
Create new workorder linked to parent workorder
Returns Promise that represents an object describing the newly-created workorder
See /{subdirectory}/apidocs/#/data-type-infodataType=WorkOrder on the Cityworks instance
The workorder S/ID which the entities should be added to. # for SID, string for ID.
Get a workorder by S/ID
Returns Promise that represents an object describing the workorder
The S/ID of the workorder to retrieve. # for SID, string for ID.
Whether first argument is an SID (true) or an ID (false). Defaults to true.
Get workorders by an array of S/IDs
Returns Promise that represents a collection of Objects describing the workorders
The workorder S/IDs to retrieve. If providing WorkOrderID, should be all strings, else provide all numbers for WorkOrderSID
Get custom field values for the workorder S/IDs
Returns Promise that represents a collection of Objects describing the workorders
The workorder S/IDs to retrieve. #s for SID, strings for ID.
Get entities on an existing WorkOrder
Returns object that represents a list of entities removed.
The workorder S/IDs which the entities should be added to. # for SID, string for ID.
Query gis to populate Entity.Attributes with current gis data. Defaults to true.
Get instructions by an array of workorders S/IDs
Returns Promise that represents an array of String, String describing the workorder instructions
The workorder S/IDs to retrieve. If providing WorkOrderID, should be all strings, else provide all numbers for WorkOrderSID
Move a workorder's point
Returns Promise that represents an object describing the updated workorder
Should include WKT or WKID attribute. Can also include VcsWKID attribute.
Optional
z: numberOptional Z coordinate
Remove entities from a WorkOrder. Provide WorkOrderId and either ObjectIds or EntityType and EntityUids
Returns object that represents a list of entities removed.
The workorder S/ID which the entities should be removed from. # for SID, string for ID.
Remove entities by WorkOrderEntity.ObjectId (not gis objectId).
Update WorkOrder xy after removing entities, default is true.
Update a WorkOrder entity
Returns object that represents a list of entities removed.
The workorder S/ID which the entities should be added to. # for SID, string for ID.
Entity info object including: (req) EntityType: {string}, (req) EntityUid: {string}, Facility_Id: {string}, Level_Id: {string}
Update WorkOrder completeness, default is true.
Update Map Layer Fields
Returns Promise that represents a ...
The workorder S/ID to get the map layer fields for.
Optional
x: numberOptional
y: numberOptional
domainId: numberShould include WKT or WKID attribute. Can also include VcsWKID attribute.
Optional
z: numberOptional Z coordinate
WorkOrder Administration methods