Skip to main content
Version: Release 24.1

ServiceNow App Integration for Release

This topic covers the integration of ServiceNow with Release, including how to connect the two platforms to automate and synchronize workflows.

ServiceNow App for Integration With Digital.ai Release

Digital.ai Release Integration is a ServiceNow certified application for integration. You can obtain the app from the ServiceNow Store.

To use the app, install it in your ServiceNow console. This creates a new menu item containing all the necessary configuration options. For more information on the installation process see Install an application.

ServiceNow Release app

Using Design Templates From Digital.ai Release

All design templates can be retrieved by ServiceNow and can be used to initiate a release from ServiceNow. If you want to use information from the ServiceNow record that initiated the release, you must create two template variables:

  • ${id}: the sys_id of the record the release was initiated from
  • ${number}: the number of the record the release was initiated from

The variables listed above will be entered by ServiceNow upon creation.

Create design templates

Connect the Digital.ai Release Server From ServiceNow

To set up a connection to a Release server from within the ServiceNow app:

  1. Navigate to Digitalai Release > properties
  2. In the endpoint field, enter the URL of the Release server (with api/v1/ appended to the URL).
  3. In the Username field, enter the username to connect with the Release server.
  4. In the Password field, enter a password to connect with the Release server.
  5. Optionally, set the Language ISO code if your instance of Release uses a different language than the one used in ServiceNow.
  6. Optionally, set the "Autostart on true/false" value to specify if the release should immediately start in Release.
  7. Optionally, set the "Fetch the release templates from XLR on a nightly basis" value to true/false depending on your requirements.

Release properties

The next step is to retrieve the possible templates from Release. Follow these steps:

  1. In the ServiceNow console, navigate to Digitalai Release > Release templates
  2. Click Get Templates.

This retrieves all design templates from Release and display them in a list.

tip

This is also a quick way to test your connection to the Release server.

Set Up Trigger Rules in ServiceNow

Trigger rules in ServiceNow need to be set up to initiate actions on change events in communications between ServiceNow and Release. There are three communication options that can be used from ServiceNow:

  • Create Release: initiate a release in Release
  • Comment: leave a comment in Release
  • Complete Task: complete a task in Release

To set up a trigger rule, in the ServiceNow app:

  1. Navigate to Digitalai Release > Trigger rules and click New.

    • A few samples are set up for you to review. You can either reuse these or create your own.
  2. Add a Name for the rule and select a Type from the list.

  3. In the Table list on the right side, select a table to apply the rule to. This will populate the available fields.

  4. The Previous State and Current State tabs are used to compare the state of the release prior to and after the change event, and run the trigger rules if the conditions are met.

    Trigger rules in ServiceNow

    Available fields and field mappings exist next to the trigger rules. If you want to send different field information such as variables, from ServiceNow to Release, you must configure these mappings.

    Example of Available fields

    Available fields in ServiceNow

    Example of Mapping

    Field mapping in ServiceNow

Initiate a Release From ServiceNow

  1. Create a trigger rule for Create Release in Trigger rules.

  2. In Change Request, click Create new.

  3. Fill in the Description and Short description fields.

  4. Click search icon next to Assignment group and Select an assignment group.

  5. Scroll down and click the search icon next to the Digitalai Release template.

    Digital.ai Release tab

  6. Select the name of your template.

  7. Enter the Values to the Digitalai Release variables.

  8. Right-click and select Save to store the change event. The form is reloaded upon saving and it will auto-populate the Digitalai Identifier and the Release status.

    Digital.ai Release tab

Digital.ai Release Variables Value Format

Variable TypeVariable Format
TextString of any type
List BoxList that allows you to choose a default value
PasswordMust be greater than 8 characters. Must include a capital character, lowercase character, number and special character(ex: !@#$%^&*?/). Once the form is saved and reloaded the password will be masked (ExamplePassword12!)
CheckboxThis is a boolean value. This can be set by either typing false or true
NumberThis is a number value which can be set to any value
ListThis is a list of values. Unlike the box value it does not need to have a starting value set
DateThis date value can be set using the format (YYYY-MM-DD HH:MM:SS)
Key-value MapThis allows you to set Key and value. Using the format: Key_One:Val_One, Key_Three:Val_Three, Key_Two:Val_Two
SetThis allows you to store data with out repeating values. Using the format: Val_Two,Val_One,Val_Three
PlaceholderThis allows you to refer to values in labels in the change request. Use the $ sign to access the value in a label, e.g. Use $requested_by, to access the value of the Requested By label. Once saved, the placeholder will be converted to the associated value, e.g. the image below shows the value System Administrator is referenced by using $requested_by
Important note about editing variables
These values must be created in Digital.ai Release. They can not be created or edited by adjusting the Variable names or using the plus button. You can edit the Variables values in ServiceNow.
Digital.ai Release tab

Complete a Gate Task When Change Request is Approved

To configure and complete a Gate task when a Change Request is approved in ServiceNow:

  1. In Digital.ai Release template, to create a Gate task, navigate to Core -> Gate.
    • To get this task to run automatically, use the Tag "snow_approved".
    • Gates allow for the user to either automatically run them, using "snow_approved" tag or by clicking Skip.
  2. In ServiceNow, create trigger rules for Create Release and Complete Task in trigger rules.
  3. Initiate a release by following the steps in Initiate a release from ServiceNow
  4. In Change Request record, click the Request approval on the top bar.
  5. Scroll to the bottom and select the Approvers tab.
    • Select at least two approvers by checking the boxes next to their names.
    • In the actions on selected row menu, select Approve.
  6. Click the Get XLR info on the top bar. This changes the Digitalai Release Status to IN_PROGRESS in ServiceNow.
  7. At the bottom of the page in Service now, return to the Approvers tab. Additional approvers should now be visible. Select the approvers and, in the actions on selected row menu, select Approve. When the change requests gets approved in ServiceNow, this will trigger the completion of all gate tasks that contain the tag 'snow_approved' in the associated Digital.ai release.

Information on Tasks in ServiceNow

Four fields in ServiceNow are used for communicating with Digital.ai Release:

  • Digitalai Release template: the template to use when creating a release from ServiceNow.
  • Digitalai Release Identifier: the identifier of a release in Digital.ai Release. This field is created from ServiceNow.
  • Digitalai Release Status: the state of the release in Digital.ai Release.
  • Correlation id: the Digital.ai Release task ID for which the last communication was done.

Next to these fields:

  • A Get XLR info is available to retrieve the latest status of the release in Digital.ai Release
  • A Navigate to Release related link navigates to the release in the Release user interface.