R12.3-2026Apr21

Defining an External Approval Request

  1. Select the Planning node in the runbook.
  2. In the Approval pane, select External in the Approval System field.
    Information Note: If the External option is disabled, see Approval Settings for how to adjust the approval option.
  3. Click Copy to copy and paste the runbook ID. The ID will be used to link with a ticket in an external system, thus building a connection with the Approval node in the external system for status synchronization.
  4. Create a change ticket in the external system and customize two fields in the ticket to save the Change Management ID and the returned NetBrain URL.
  5. Create a business rule to define ticket and network change task status mapping and API calls in the external system. The rule mainly covers the following components:
  • How to access your domain.
  • Map ticket state and Change Management status.
  • Bind ticket ID to Change Management ID.
  • Call NetBrain API to Set Change Management Status when the ticket state changes.

Example: Define Status Mapping and API Calls in ServiceNow.

Code
/**
* ServiceNow Script Example, Please follow this script
*
*/
(function executeRule(current, previous /*null when async*/) {
 
    var NB_API_PREFIX = 'http://your web API server address/ServicesAPI/API/V1/';
 
    // login to get token & logout
    var tokene<span class="dxhe-searchHI">ne</span>ss logic
                apiCMBinding();
                apiUpdateCMApprovalState();
            }
            logout();
        } else {
            gs.info('login failed, quit now...');
        }
    }
 
    main(); // run
})(current, previous);