Troubleshooting Azure DevOps Integration With Agile DevelopmentIssue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Troubleshooting Azure DevOps Integration With Agile Development Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } All Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Problem 1: Setting Up Azure DevOps Connection Resolution: Step 1: Create ADO Instance Record Create a record in the ADO instance table in ServiceNow Populate the ADO instance URL Step 2: Configure Credentials Create a service account in Azure DevOps that has access to all projects In ServiceNow credentials table, populate Username, Password of the service account. Step 3: Connect to ADO Click the "Connect" button on the ADO instance record ServiceNow sends credentials and URL to Azure DevOps for validation Once successful, status will show "Connected" Step 4: Discover Projects Click "Discover Projects" to import all Azure DevOps projects An import request record is created and shows the number of projects imported You can view import request details: insert count, update count, total count, and status Problem 2: Configuring Project-Level Settings Resolution: Step 1: Set Import/Export/Sync Options For each Azure DevOps project, you can configure: Import work items (checkbox) - import ADO work items to ServiceNow Export work items (checkbox) - export ServiceNow records to ADO Sync sprints (checkbox) - sync sprint records Step 2: Register Webhook Click "Register Webhook" for the project ServiceNow sends a request to Azure DevOps to register the webhook Verify in Azure DevOps project settings → Service Hooks that the ServiceNow instance is registered Step 3: Configure Team Integration Settings Team integration settings map Azure DevOps teams to ServiceNow assignment groups If no team integration settings exist, work items will sync but assignment group field will be empty Step 4: Import Teams, Iterations, and Areas Before creating team integration settings, import ADO teams using a related link This creates import request records for: Teams Iterations Areas Step 5: Create Team Integration Settings Create a team integration setting that maps an ADO team to a ServiceNow assignment group When work items are created in ADO under a mapped team, they will sync to ServiceNow with the corresponding assignment group Problem 3: How Data Syncs from Azure DevOps to ServiceNow Resolution: Step 1: Understanding Webhook Flow When you create or update a work item in Azure DevOps, a webhook event is triggered The webhook request is received by a Scripted REST API resource in ServiceNow called "Webhook Callbacks" Step 2: Request Validation The Scripted REST API performs the following checks: Extracts instance ID from the request Verifies the instance is configured in ServiceNow Validates the webhook token (sent during connection, verified on request) If validation fails, the request is rejected Step 3: Webhook Decision Policy After validation, the decision policy determines which flow to execute based on the webhook event: Work item created or updated → "Process Azure DevOps Work Item Flow" Work item deleted → "Process Azure DevOps Work Item Delete Flow" Step 4: Processing Work Item The flow checks for duplicate/cyclic updates: If the user making the change in ADO is the service account configured in credentials, it is treated as a duplicate To avoid duplicates, always populate the username field in credentials If not a duplicate, the work item is processed and synced to ServiceNow using field and table mappings Problem 4: Debugging Azure DevOps to ServiceNow Sync Issues Resolution: Step 1: We can firstly check the new executions of ADO integration flows in flow executions, if they are executed correctly or not Also check if the web hook callback request was received by the Scripted REST API "webhook callbacks" We can manually add logs in the scripted rest api to verify the execution of web hook callback request script in syslog table If no request appears: Web hooks in Azure DevOps may not be configured properly Verify service account has proper permissions in Azure DevOps Step 2: Check Web hook Decision Policy Flow If request reached the Scripted REST API but work item did not sync: Check the Process Azure DevOps Work Item flow execution in Operations → Flows Review flow inputs and outputs: Inputs show the data received from Azure DevOps payload Outputs show the result of the flow execution Step 3: Check Payload in Flow Open the flow execution and view the payload from Azure DevOps Verify that fields you updated in Azure DevOps appear in the payload If field does not appear in payload, it may not be tracked by webhook in Azure DevOps Step 4: Check Each Flow Step Review each step in the flow for execution status: Check if duplicate/cyclic check passed or failed Review inputs and outputs at each action step Look for errors in step logs Step 5: Common Issues Cyclic/Duplicate Update Failure: Cause: Username field not populated in credentials, or changes made by service account Solution: Populate username field in credentials. Service account should only be used for connection, not for making changes Field Not Syncing: Solution: Check process mapping and field maps at project level. If field is not mapped, create a new field map Problem 5: How Data Syncs from ServiceNow to Azure DevOps Resolution: Step 1: Business Rules Trigger Export When you make changes to a work item record (Story, Epic, etc.) in ServiceNow, a business rule is triggered Out-of-the-box business rules are shipped on standard work item tables For custom tables, create similar business rules Step 2: Interactive Condition Business rule condition is set to "Interactive" which means: Manual changes made directly to the record are honored Changes made via scripts are NOT exported (to prevent duplicate/infinite loops) Step 3: Extract Record and Prepare Payload The business rule calls a script that: Gets the current record instance Checks if the state is "connected" Checks for external identifier (link to Azure DevOps record) Prepares payload using table and field mappings Step 4: External Identifier Reference Each ServiceNow record synced to Azure DevOps is linked via external identifier: External identifier table contains references to the Azure DevOps work item Information stored: Area Iteration Work Item ID Project External URL Step 5: Execute Sync Flow The script calls the "Sync Azure DevOps Work Item" subflow The flow constructs the payload and sends it to Azure DevOps Azure DevOps updates the corresponding work item Problem 6: Debugging ServiceNow to Azure DevOps Sync Issues Resolution: Step 1: Check Flow Executions When you make changes to a record in ServiceNow, check Operations → Flows Look for the "Sync Azure DevOps Work Item" flow execution Step 2: Review Flow Inputs and Outputs Inputs include: Area Glide record (ServiceNow record) Project Payload (formatted for Azure DevOps) Outputs show: Context of execution Any logs or errors Step 3: Verify Field Mappings Check process mapping at project level for correct field mappings If a field is not mapped, it will not sync to Azure DevOps Create new field maps for custom fields as needed Step 4: Check External Identifier If record won't sync, verify external identifier exists linking to Azure DevOps View the external identifier table for the record Step 5: Common Issues Record Not Exporting: Cause: Changes made via script (not manual). Business rule condition is "Interactive" so scripted changes are ignored Field Not Updating in Azure DevOps: Solution: Verify field map exists for that field at project level Problem 7: Configuring Process Mapping and Field Maps Resolution: Step 1: Access Process Mapping Process mapping is configured at the project level Navigate to the Azure DevOps project record and go to Process Mapping section Step 2: Table Maps Table maps define which ServiceNow tables map to Azure DevOps work item types Example: RM_story table maps to "Story" work item type in Azure DevOps Step 3: Field Maps Field maps define which ServiceNow fields sync to Azure DevOps fields External field name: The Azure DevOps field name (e.g., "system.state") Internal field name: The ServiceNow field (e.g., "state") Step 4: Adding Custom Field Maps To get external field names for custom Azure DevOps fields: Go to the Azure DevOps work item record Retrieve the XML representation of the work item from Azure DevOps Copy the field name from the XML and use it in the field map Step 5: Choice Mapping For fields with multiple choice values (e.g., State), create choice maps Example: Jira "Done" (external) maps to ServiceNow "Completed" (internal) Problem 8: Understanding Sprint Syncing Resolution: Step 1: Sync Sprints Option When "Sync Sprints" is enabled at project level, sprint records are created in ServiceNow Sprints are stored in the RM Sprint table Step 2: Linking Work Items to Sprints Work items are linked to sprints through the "Iteration" field RM Story table has a sprint reference field that links to RM Sprint table When a work item in Azure DevOps is assigned to an iteration (sprint), the corresponding sprint link is created in ServiceNow Problem 9: Disabling Export Work Items Resolution: Effect of Disabling Export: If you uncheck "Export Work Items" option for a project: Changes made in ServiceNow will NOT sync to Azure DevOps One-way sync only: Azure DevOps → ServiceNow (import only) Related Links<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Useful Resources: https://www.servicenow.com/docs/r/it-business-management/microsoft-azure-devops-integrations-comm/setting-up-agile-azure-integration.html https://www.servicenow.com/docs/r/it-business-management/microsoft-azure-devops-integrations-comm/import-export-issues-azure-agile-workflow.html https://www.servicenow.com/docs/r/it-business-management/microsoft-azure-devops-integrations-comm/troubleshooting-issues-agile-azure-int.html