---
sourceDocument: Australia Field Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/field-service-management

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia Field Service Management

ft:clusterId :

    - fsm

bundleId :

    - fsm

workflow :

    - Customer and Industry


---

# Customize the work order state transition map

# Customize the work order state transition map {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Users with the system administrator role can customize the work order state transition
map, which maps work order states to project task states.

Updating the state of a work order also updates the state of the linked project task. The
FieldServicesProjectTaskStateHandler script maps the work order states to the
project task states. Users with the system administrator role can customize this state transition
map as needed based on the following examples.

## Examples

Setting the status of a work order to Close complete should not close the project task. To make this change, remove the following line in the initialize() function:

    this.workOrderProjectTaskStateMap[FieldServiceProjectTaskStateHandler.WORK_ORDER_STATE_CLOSE_COMPLETE] =
          FieldServiceProjectTaskStateHandler.PROJECT_TASK_STATE_CLOSE_COMPLETE;
        
To map the work order Pending dispatch state to the project task Open state, add the following line to the initialize() function:


        this.workOrderProjectTaskStateMap[FieldServiceProjectTaskStateHandler.WORK_ORDER_STATE_PENDING_DISPATCH] = FieldServiceProjectTaskStateHandler.PROJECT_TASK_STATE_OPEN;
        
To qualify a task automatically once the project task is changed to
Open, change the
FieldServiceProjectUpdateHandler process function that listens on
project task updates and change the linked work order to Qualified.
Add the following line after this section:  
if(taskJSON.change_map \&\& taskJSON.change_map.state){


        If(taskJSON.change_map.state == FieldServiceProjectTaskStateHandler.PROJECT_TASK_STATE_OPEN
        workOrder.state = FieldServiceProjectTaskStateHandler. WORK_ORDER_STATE_PENDING_DISPATCH
        workOrder.update();
        

