Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Integrating your MettleCI Workbench with ServiceNow will enable you to link every DataStage Git commit to one or more ServiceNow work items directly within the Workbench user interface.


Register Workbench as an OAuth2 ServiceNow Application

  1. Setup OAuth in ServiceNow in your ServiceNow instance.

  2. Create a new OAuth API endpoint for Workbench to access ServiceNow:

  3. Set the “Name” Field to “MettleCI Workbench” and the “Redirect URL” to https://<workbench url>:8080/api/auth/delegated/service_now and click “Submit”:


    If your organization has installed multiple MettleCI Workbench application, you can add them all to the same ServiceNow Application Registration by adding multiple Redirect URLs.

  4. Click on your newly created Application Registration:

  5. Note down the “Client ID” and “Client Secret” field properties for later use:

  6. If you are starting Workbench for the first time, you will be taken through a setup wizard. You can configure your ServiceNow work item lookup in the setup wizard.
    Alternatively, log into your MettleCI Workbench server and open /opt/dm/mci/config.yml in your favorite editor and follow the next three steps.

  7. Change the issueManagement property to serviceNow, add an serviceNow section as shown below and replace the <tags> with the values noted in the previous steps:

    issueManagement: serviceNow
    serviceNow:
       url: <your ServiceNow instance URL>
       clientId: <your Client ID>
       clientSecret: "<your Client Secret>"

  8. Add at least one ServiceNow Table to search during Work Item lookup:

    issueManagement: serviceNow
    serviceNow:
       url: <your ServiceNow instance URL>
       clientId: <your Client ID>
       clientSecret: "<your Client Secret>"
       search:
          - table: <first ServiceNow Table to search>
            id: <template string>
            summary: <template string>
          - table: <second ServiceNow Table to search>
            id: <template string>
            summary: <template string>

    During issue lookup, Workbench will search each ServiceNow Table configured in the search list. The Ids that will appear in the commit message are generated from the “id” template string and the text shown in the lookup is generated from the “summary” template strings.
    Template Strings are text containing special ${column_name} variables which work bench will replace with Column data from the ServiceNow Table based on the column_name.
    For example, the following configuration can be used to first lookup Incident and then Problem Tables as provided in default ServiceNow configurations:

    issueManagement: serviceNow
    serviceNow:
       url: <your ServiceNow instance URL>
       clientId: <your Client ID>
       clientSecret: "<your Client Secret>"
       search:
          - table: incident
            id: "${number}"
            summary: "${number}: ${short_description}"
          - table: problem
            id: "${number}"
            summary: "${number}: ${short_description}"
  9. Restart the workbench service

    sudo service dm-mettleci-workbench restart

  10. ServiceNow work items will be available from the the Issues drop down during Check-in:

  • No labels