Azure DevOps (GraphQL)

Related queries and mutations in Notifications. Each has its own section.

Queries

getAzureDevopsIntegrations (query)

getAzureDevopsIntegrations is a query in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get Azure DevOps work item integrations

Arguments

ArgumentTypeDescription
integrationIdUUIDFilter by integration ID

Returns

[AzureDevOpsIntegrationOutput]

Example

query GetAzureDevopsIntegrations {
  getAzureDevopsIntegrations {
    integrationId
    integrationName
    organization
    createdTime
    updatedTime
  }
}

Related types

AzureDevOpsIntegrationOutput, UUID

getAzureDevopsProjects (query)

getAzureDevopsProjects is a query in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get list of projects for an Azure DevOps integration

Arguments

ArgumentTypeDescription
integrationIdUUID!ID of the Azure DevOps integration

Returns

[AzureDevOpsProjectOutput]

Example

query GetAzureDevopsProjects($integrationId: UUID!) {
  getAzureDevopsProjects(integrationId: $integrationId) {
    id
    name
    description
  }
}

Types used only by getAzureDevopsProjects

AzureDevOpsProjectOutput

Object type. Output type for Azure DevOps project.

FieldTypeDescription
idStringProject ID
nameStringProject name
descriptionStringProject description

Related types

UUID

getAzureDevopsWorkItemTypes (query)

getAzureDevopsWorkItemTypes is a query in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get list of work item types for a project

Arguments

ArgumentTypeDescription
integrationIdUUID!ID of the Azure DevOps integration
projectString!Project name

Returns

[AzureDevOpsWorkItemTypeOutput]

Example

query GetAzureDevopsWorkItemTypes($integrationId: UUID!, $project: String!) {
  getAzureDevopsWorkItemTypes(integrationId: $integrationId, project: $project) {
    name
    description
  }
}

Types used only by getAzureDevopsWorkItemTypes

AzureDevOpsWorkItemTypeOutput

Object type. Output type for Azure DevOps work item type.

FieldTypeDescription
nameStringWork item type name (e.g., Bug, Task, User Story)
descriptionStringWork item type description

Related types

UUID

testAzureDevopsCredentials (query)

testAzureDevopsCredentials is a query in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Test the Azure DevOps connection credentials

Arguments

ArgumentTypeDescription
organizationString!Azure DevOps organization name
basicAuthCredentialsAzureDevOpsBasicAuthCredentialsInputBasic auth credentials to test (PAT)
oauthCredentialsAzureDevOpsOauthCredentialsInputOAuth credentials to test (not yet supported for testing)

Returns

TestAzureDevOpsCredentialsOutput

Example

query TestAzureDevopsCredentials($organization: String!) {
  testAzureDevopsCredentials(organization: $organization) {
    validCredentials
  }
}

Types used only by testAzureDevopsCredentials

TestAzureDevOpsCredentialsOutput

Object type. Output type for credential testing.

FieldTypeDescription
validCredentialsBoolean!

Related types

AzureDevOpsBasicAuthCredentialsInput, AzureDevOpsOauthCredentialsInput

Mutations

createAzureDevopsIntegration (mutation)

createAzureDevopsIntegration is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Create an Azure DevOps work item integration

Arguments

ArgumentTypeDescription
basicAuthCredentialsAzureDevOpsBasicAuthCredentialsInputProvide either basic credentials or OAuth credentials
integrationNameString!Identifying name
oauthCredentialsAzureDevOpsOauthCredentialsInputProvide either basic credentials or OAuth credentials (preferred)
organizationString!Azure DevOps organization name

Returns

CreateAzureDevOpsIntegration

Example

mutation CreateAzureDevopsIntegration($integrationName: String!, $organization: String!) {
  createAzureDevopsIntegration(integrationName: $integrationName, organization: $organization) {
    oauthRedirectUrl
  }
}

Types used only by createAzureDevopsIntegration

CreateAzureDevOpsIntegration

Object type. Create a new Azure DevOps integration.

FieldTypeDescription
azureDevopsIntegrationAzureDevOpsIntegrationOutputThe created integration
oauthRedirectUrlStringOAuth redirect URL if OAuth credentials were provided

Related types

AzureDevOpsBasicAuthCredentialsInput, AzureDevOpsIntegrationOutput, AzureDevOpsOauthCredentialsInput

createAzureDevopsWorkItemForAlert (mutation)

createAzureDevopsWorkItemForAlert is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Create Azure DevOps work item for alert

Arguments

ArgumentTypeDescription
alertIdUUID!ID of the alert
descriptionStringWork item description
integrationIdUUID!ID of the Azure DevOps integration
projectString!Azure DevOps project name
titleStringWork item title
workItemTypeString!Work item type (Bug, Task, User Story, etc.)

Returns

CreateAzureDevOpsWorkItemForAlert

Example

mutation CreateAzureDevopsWorkItemForAlert($alertId: UUID!, $integrationId: UUID!, $project: String!, $workItemType: String!) {
  createAzureDevopsWorkItemForAlert(alertId: $alertId, integrationId: $integrationId, project: $project, workItemType: $workItemType) {
    azureDevopsWorkItem {
      workItemId
      alertId
      integrationId
      workItemUrl
      workItemType
      project
      createdByEmail
      createdAt
    }
  }
}

Types used only by createAzureDevopsWorkItemForAlert

CreateAzureDevOpsWorkItemForAlert

Object type. Create a new Azure DevOps work item from a Monte Carlo alert.

This mutation creates a work item in Azure DevOps and links it to the alert.

FieldTypeDescription
azureDevopsWorkItemAzureDevOpsWorkItemOutput

Related types

AzureDevOpsWorkItemOutput, UUID

deleteAzureDevopsIntegration (mutation)

deleteAzureDevopsIntegration is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Delete an Azure DevOps work item integration

Arguments

ArgumentTypeDescription
integrationIdUUID!The integration ID

Returns

DeleteAzureDevOpsIntegration

Example

mutation DeleteAzureDevopsIntegration($integrationId: UUID!) {
  deleteAzureDevopsIntegration(integrationId: $integrationId) {
    deleted
  }
}

Types used only by deleteAzureDevopsIntegration

DeleteAzureDevOpsIntegration

Object type. Delete an Azure DevOps integration.

FieldTypeDescription
deletedBooleanIf the integration was deleted

Related types

UUID

linkAzureDevopsIntegration (mutation)

linkAzureDevopsIntegration is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Complete OAuth flow for Azure DevOps work item integration

Arguments

ArgumentTypeDescription
codeString!OAuth code from callback URL
stateString!OAuth state from callback URL

Returns

LinkAzureDevOpsIntegration

Example

mutation LinkAzureDevopsIntegration($code: String!, $state: String!) {
  linkAzureDevopsIntegration(code: $code, state: $state) {
    success
  }
}

Types used only by linkAzureDevopsIntegration

LinkAzureDevOpsIntegration

Object type. Complete OAuth flow for Azure DevOps integration.

FieldTypeDescription
successBooleanTrue if exchanging code for tokens was successful
azureDevopsIntegrationAzureDevOpsIntegrationOutputCreated or updated Azure DevOps integration

Related types

AzureDevOpsIntegrationOutput

linkAzureDevopsWorkItemForAlert (mutation)

linkAzureDevopsWorkItemForAlert is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Link existing Azure DevOps work item to alert

Arguments

ArgumentTypeDescription
alertIdUUID!ID of the alert
integrationIdUUID!ID of the Azure DevOps integration
workItemUrlString!URL of the Azure DevOps work item

Returns

LinkAzureDevOpsWorkItemForAlert

Example

mutation LinkAzureDevopsWorkItemForAlert($alertId: UUID!, $integrationId: UUID!, $workItemUrl: String!) {
  linkAzureDevopsWorkItemForAlert(alertId: $alertId, integrationId: $integrationId, workItemUrl: $workItemUrl) {
    azureDevopsWorkItem {
      workItemId
      alertId
      integrationId
      workItemUrl
      workItemType
      project
      createdByEmail
      createdAt
    }
  }
}

Types used only by linkAzureDevopsWorkItemForAlert

LinkAzureDevOpsWorkItemForAlert

Object type. Link an existing Azure DevOps work item to a Monte Carlo alert.

This mutation creates a link between an existing work item and an alert
without creating a new work item.

FieldTypeDescription
azureDevopsWorkItemAzureDevOpsWorkItemOutput

Related types

AzureDevOpsWorkItemOutput, UUID

unlinkAzureDevopsWorkItemForAlert (mutation)

unlinkAzureDevopsWorkItemForAlert is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Unlink Azure DevOps work item from alert

Arguments

ArgumentTypeDescription
workItemIdUUID!The work item link ID (UUID)

Returns

UnlinkAzureDevOpsWorkItemForAlert

Example

mutation UnlinkAzureDevopsWorkItemForAlert($workItemId: UUID!) {
  unlinkAzureDevopsWorkItemForAlert(workItemId: $workItemId) {
    unlinked
  }
}

Types used only by unlinkAzureDevopsWorkItemForAlert

UnlinkAzureDevOpsWorkItemForAlert

Object type. Unlink an Azure DevOps work item from a Monte Carlo alert.

This mutation removes the link between a work item and an alert.
The work item itself is not deleted in Azure DevOps.

FieldTypeDescription
unlinkedBooleanTrue if the work item was unlinked

Related types

UUID

updateAzureDevopsIntegration (mutation)

updateAzureDevopsIntegration is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Update an Azure DevOps work item integration

Arguments

ArgumentTypeDescription
basicAuthCredentialsAzureDevOpsBasicAuthCredentialsInputNew basic auth credentials (optional, only if rotating)
integrationIdUUID!The integration ID
integrationNameString!Identifying name
oauthCredentialsAzureDevOpsOauthCredentialsInputNew OAuth credentials (optional, only if rotating)
organizationString!Azure DevOps organization name

Returns

UpdateAzureDevOpsIntegration

Example

mutation UpdateAzureDevopsIntegration($integrationId: UUID!, $integrationName: String!, $organization: String!) {
  updateAzureDevopsIntegration(integrationId: $integrationId, integrationName: $integrationName, organization: $organization) {
    oauthRedirectUrl
  }
}

Types used only by updateAzureDevopsIntegration

UpdateAzureDevOpsIntegration

Object type. Update an existing Azure DevOps integration.

FieldTypeDescription
azureDevopsIntegrationAzureDevOpsIntegrationOutputThe updated integration
oauthRedirectUrlStringOAuth redirect URL if OAuth credentials were provided

Related types

AzureDevOpsBasicAuthCredentialsInput, AzureDevOpsIntegrationOutput, AzureDevOpsOauthCredentialsInput, UUID

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.