Skip to main content
Skip table of contents

Maintenance Order creation

Endpoint: POST {{host}}/maintenance/orders - bude zrušen

Input Parameters: Maintenance Order object parameters

image-20240510-062916.png

Endpoint: POST {{host}}/maintenance/orders/actions/create

Input Parameters: Maintenance Order object parameters + selfAssign a Assigned by user

image-20240510-063428.png

Steps:

  1. Maintenance Order is created with input parameters + following logic is used:

    1. MO number is generated based on notification sequence.

    2. Status Created is used

    3. If Equipment is provided and equipment has associated user and Setting parameters Automatic assignment to responsible team/user is allowed Assigned status is used for MO and user is assigned to MO

    4. If Equipment is provided and equipment has associated team and Setting parameters Automatic assignment to responsible team/user + Allow maintenance planning mode by teams are allowed AssignedToTeam status is used for MO and team is assigned to MO

    5. If Self Assignment is requested → Time scheduled finish is set to current time

  2. Notification for created MO is issued

  3. If self assignment is requested → MO is assigned to current user, Maintenance Order Staff relation is created, Order Status is set to assigned, Assignment time is set. If team is provided, MO is assigned to team

  4. If parameter idInstruction is provided, selected instructions are connected with the Maintenance Order. Otherwise if equipment is provided and equipment is connected with instructions, these instructions are connected with MO.

  5. If equipment is provided statistics MTTR, MTBF and Average reaction time are recalculated

  6. Empty Completition confirmation is assigned to MO

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.