Enforcing Prod changes to have an approved ServiceNow ticket

We want to enforce that any changes going to Prod must have an approve ServiceNow ticket.

Is it possible to add our step in our Deploy Manager pipeline that check for this?

Where would we indicate the ticket number? → Can we add a field in the pipeline details form?

Is it possible to make a REST API call to get the ticket status?

Will we be able to show an error when status is incorrect?

@DiegoM9871

@nayam could you comment on this?


:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

it’s entirely possible to add a validation step in your Deploy Manager pipeline that checks for an approved ServiceNow ticket before allowing production deployments. Deployment Manager provides robust customization options that would support this requirement.

Here’s how you could implement this:

1. For indicating the ticket number:
You can add a custom field to the pipeline details form. Deployment Manager allows you to create custom tasks with customized input forms, where you could add a field specifically for the ServiceNow ticket number.

2. For making REST API calls to ServiceNow:
Deployment Manager supports the creation of custom tasks that can integrate with external systems. You could create a custom task that makes REST API calls to ServiceNow to verify the ticket status. This would involve:

  • Creating a custom task definition
  • Implementing the ServiceNow API connection logic
  • Fetching the ticket status based on the ticket number entered in the form

3. For showing errors when the ticket status is incorrect:
You can configure your custom validation task to block the deployment process and display an error message when the ServiceNow ticket status doesn’t meet your requirements (e.g., not approved, closed, or invalid).

Implementing this would involve:

  1. Creating a custom task for ServiceNow integration
  2. Modifying your pipeline to include this validation step before production deployment
  3. Ensuring proper authentication and connection between Deployment Manager and ServiceNow

This approach aligns with Deployment Manager’s purpose of supporting customized quality gates and checkpoints specific to your business needs. The custom task functionality is specifically designed for integrations like this, where you need to automate validation against external systems.

References:
Working with custom Tasks
Deployment Manager overview
Deployment Manager service

@MarijeSchillern The response is correct. If this ask is on Deployment Manager v5, create custom tasks could be used for creation of Custom task. We also support dynamic inputs that will prompt the inputs when the deployment is executing the task. Please see add inputs to custom tasks