Jira (GraphQL)

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

Queries

getJiraIntegrations (query)

getJiraIntegrations 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.

Get the configured Jira integrations

Arguments

ArgumentTypeDescription
integrationIdUUIDFilter by integration ID

Returns

[JiraIntegrationOutput]

Example

query GetJiraIntegrations {
  getJiraIntegrations {
    integrationId
    integrationName
    serverUrl
    username
    defaultTicketFields
    webhookEnabled
    webhookUrl
    isTokenAuth
    webhookSecretDefined
    webhookSecretMismatchDetected
    createdTime
    updatedTime
  }
}

Related types

JiraIntegrationOutput, UUID

getJiraIssueTypes (query)

getJiraIssueTypes 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.

Get Jira issue types for the integration

Arguments

ArgumentTypeDescription
integrationIdUUID!Jira integration ID
projectIntFilter by Jira project ID
requiredFieldsOnlyBooleanFilter fields to only those which are required Default: false.

Returns

[JiraIssueTypeOutput!]

Example

query GetJiraIssueTypes($integrationId: UUID!) {
  getJiraIssueTypes(integrationId: $integrationId) {
    id
    name
    untranslatedName
  }
}

Types used only by getJiraIssueTypes

JiraIssueTypeFieldAllowedValueOutput

Object type.

FieldTypeDescription
idStringThe option's ID
displayValueString!The option's user friendly display value
children[JiraIssueTypeFieldAllowedValueOutput!]For dependant option types, the option's children
JiraIssueTypeFieldOutput

Object type.

FieldTypeDescription
keyString!The field key
nameString!The field name
requiredBoolean!If the field is required to create the issue
hasDefaultValueBoolean!If the field has a default value when not set, considering integration level default values configured on Monte Carlo
hasDefaultValueInJiraBoolean!If the field has a default value in Jira when not set
typeString!The field type
customTypeStringFor custom fields, the JIRA custom field type
itemsTypeStringFor array types, the type of the items in the array
allowedValues[JiraIssueTypeFieldAllowedValueOutput!]The allowed values for option fields
defaultValueJSONStringJSON-string representing the JIRA defined default value for this field
isMultiBooleanFor array type fields, indicates if more than one value is allowed
JiraIssueTypeOutput

Object type.

FieldTypeDescription
idInt!The issue type ID
nameString!The issue type name
untranslatedNameStringThe issue type untranslated name
fields[JiraIssueTypeFieldOutput!]!The issue type fields

Related types

JSONString, UUID

getJiraProjects (query)

getJiraProjects 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.

Get Jira projects for the given integration

Arguments

ArgumentTypeDescription
integrationIdUUID!Jira integration id

Returns

[JiraProjectOutput!]

Example

query GetJiraProjects($integrationId: UUID!) {
  getJiraProjects(integrationId: $integrationId) {
    id
    key
    name
  }
}

Types used only by getJiraProjects

JiraProjectOutput

Object type.

FieldTypeDescription
idInt!The project ID
keyString!The project key
nameString!The project name

Related types

UUID

getJiraStatuses (query)

getJiraStatuses 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.

Get Jira statuses for the given integration or set of credentials

Arguments

ArgumentTypeDescription
integrationIdUUIDJira integration id
serverUrlStringThe domain name for your Jira site
usernameStringThe Jira username for basic authentication
apiTokenStringThe personal API token for basic authentication

Returns

[JiraStatusOutput]

Example

query GetJiraStatuses {
  getJiraStatuses {
    id
    name
  }
}

Types used only by getJiraStatuses

JiraStatusOutput

Object type.

FieldTypeDescription
idString!The status ID
nameString!The status name

Related types

UUID

getJiraTeams (query)

getJiraTeams 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.

Get Jira teams for the given integration

Arguments

ArgumentTypeDescription
integrationIdUUID!Jira integration id

Returns

[JiraTeamOutput!]

Example

query GetJiraTeams($integrationId: UUID!) {
  getJiraTeams(integrationId: $integrationId) {
    teamId
    displayName
    description
    teamType
  }
}

Types used only by getJiraTeams

JiraTeamOutput

Object type. A JIRA team details

FieldTypeDescription
teamIdString!The team ID
displayNameString!The team display name
descriptionString!The team description
teamTypeString!The team type

Related types

UUID

getJiraUsers (query)

getJiraUsers 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

Bulk get Jira users by identifiers

Arguments

ArgumentTypeDescription
integrationIdUUID!Jira integration ID
keys[String!]Jira user keys (For Jira Data Center)
accountIds[String!]Jira user accountIds (For Jira Cloud)

Returns

[JiraUserOutput!]

Example

query GetJiraUsers($integrationId: UUID!) {
  getJiraUsers(integrationId: $integrationId) {
    avatarUrl
    displayName
    emailAddress
    name
    accountId
    key
  }
}

Related types

JiraUserOutput, UUID

searchJiraUsers (query)

searchJiraUsers 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

Search for Jira users

Arguments

ArgumentTypeDescription
integrationIdUUID!Jira integration ID
projectInt!Jira project ID
queryString!The search query

Returns

[JiraUserOutput!]

Example

query SearchJiraUsers($integrationId: UUID!, $project: Int!, $query: String!) {
  searchJiraUsers(integrationId: $integrationId, project: $project, query: $query) {
    avatarUrl
    displayName
    emailAddress
    name
    accountId
    key
  }
}

Related types

JiraUserOutput, UUID

testJiraCredentials (query)

testJiraCredentials 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.

Test the Jira connection credentials

Arguments

ArgumentTypeDescription
serverUrlString!The domain name for your Jira site
usernameStringThe Jira username for basic authentication
apiTokenString!The personal API token for basic authentication or token authentication
isTokenAuthBooleanWhether the integration is using Token Auth. Defaults to Basic Auth Default: false.

Returns

JiraTestCredentialsOutput

Example

query TestJiraCredentials($serverUrl: String!, $apiToken: String!) {
  testJiraCredentials(serverUrl: $serverUrl, apiToken: $apiToken) {
    validCredentials
  }
}

Types used only by testJiraCredentials

JiraTestCredentialsOutput

Object type. A Jira test credentials result

FieldTypeDescription
validCredentialsBoolean!Returns if the credentials are valid

Mutations

createJiraIntegration (mutation)

createJiraIntegration 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.

Create a Jira integration

Arguments

ArgumentTypeDescription
apiTokenStringThe personal API token for basic authentication or token authentication; if not provided previous value will be used
defaultTicketFieldsJSONStringDefault values for ticket fields
integrationNameString!A short name to identify the integration
isTokenAuthBooleanWhether the integration is using Token Auth. Defaults to Basic Auth Default: false.
serverUrlString!The domain name for your Jira site
usernameStringThe Jira username for basic authentication; if not provided previous value will be used
webhookConfigJiraWebhookConfigInputWebhook config
webhookEnabledBooleanWhether the Jira webhook is enabled

Returns

CreateJiraIntegration

Example

mutation CreateJiraIntegration($integrationName: String!, $serverUrl: String!) {
  createJiraIntegration(integrationName: $integrationName, serverUrl: $serverUrl) {
    jiraIntegration {
      integrationId
      integrationName
      serverUrl
      username
      defaultTicketFields
      webhookEnabled
      webhookUrl
      isTokenAuth
      webhookSecretDefined
      webhookSecretMismatchDetected
      createdTime
      updatedTime
    }
  }
}

Types used only by createJiraIntegration

CreateJiraIntegration

Object type. Create a Jira integration

FieldTypeDescription
jiraIntegrationJiraIntegrationOutputThe integration that was created

Related types

JSONString, JiraIntegrationOutput, JiraWebhookConfigInput

createJiraTicketForAlert (mutation)

createJiraTicketForAlert 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 jira ticket for alert

Arguments

ArgumentTypeDescription
alertIdUUID!ID of the alert
descriptionStringJira ticket description, in Markdown. It is converted to Jira wiki markup.
fieldsJSONStringJira ticket fields
integrationIdUUID!ID of the integration
issuetypeIntJira issue type ID
projectIntJira project ID
summaryStringJira ticket summary

Returns

CreateJiraTicketForAlert

Example

mutation CreateJiraTicketForAlert($alertId: UUID!, $integrationId: UUID!) {
  createJiraTicketForAlert(alertId: $alertId, integrationId: $integrationId) {
    jiraTicket {
      ticketId
      ticketUrl
      ticketKey
      alertId
      integrationId
      createdBy
      createdAt
    }
  }
}

Types used only by createJiraTicketForAlert

CreateJiraTicketForAlert

Object type.

FieldTypeDescription
jiraTicketJiraTicketOutputThe created Jira ticket

Related types

JSONString, JiraTicketOutput, UUID

createJiraTicketForIncident (mutation)

createJiraTicketForIncident 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: Deprecated: Use createJiraTicketForAlert instead

DEPRECATED. Create jira ticket for incident

Arguments

ArgumentTypeDescription
descriptionStringJira ticket description, in Markdown. It is converted to Jira wiki markup.
fieldsJSONStringJira ticket fields
incidentIdUUID!ID of the incident
integrationIdUUID!ID of the integration
issuetypeIntJira issue type ID
projectIntJira project ID
summaryStringJira ticket summary

Returns

CreateJiraTicketForIncident

Example

mutation CreateJiraTicketForIncident($incidentId: UUID!, $integrationId: UUID!) {
  createJiraTicketForIncident(incidentId: $incidentId, integrationId: $integrationId) {
    jiraTicket {
      ticketId
      ticketUrl
      ticketKey
      alertId
      integrationId
      createdBy
      createdAt
    }
  }
}

Types used only by createJiraTicketForIncident

CreateJiraTicketForIncident

Object type.

FieldTypeDescription
jiraTicketJiraTicketOutputThe created Jira ticket

Related types

JSONString, JiraTicketOutput, UUID

deleteJiraIntegration (mutation)

deleteJiraIntegration 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.

Delete a Jira integration

Arguments

ArgumentTypeDescription
integrationIdUUID!The integration ID

Returns

DeleteJiraIntegration

Example

mutation DeleteJiraIntegration($integrationId: UUID!) {
  deleteJiraIntegration(integrationId: $integrationId) {
    deleted
  }
}

Types used only by deleteJiraIntegration

DeleteJiraIntegration

Object type. Delete a Jira integration

FieldTypeDescription
deletedBoolean

Related types

UUID

linkJiraTicketForAlert (mutation)

linkJiraTicketForAlert 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 Jira Ticket for Alert

Arguments

ArgumentTypeDescription
alertIdUUID!ID of the alert
integrationIdUUID!ID of the integration
ticketUrlString!URL of the Jira ticket

Returns

LinkJiraTicketForAlert

Example

mutation LinkJiraTicketForAlert($alertId: UUID!, $integrationId: UUID!, $ticketUrl: String!) {
  linkJiraTicketForAlert(alertId: $alertId, integrationId: $integrationId, ticketUrl: $ticketUrl) {
    jiraTicket {
      ticketId
      ticketUrl
      ticketKey
      alertId
      integrationId
      createdBy
      createdAt
    }
  }
}

Types used only by linkJiraTicketForAlert

LinkJiraTicketForAlert

Object type.

FieldTypeDescription
jiraTicketJiraTicketOutputThe created Jira ticket

Related types

JiraTicketOutput, UUID

linkJiraTicketForIncident (mutation)

linkJiraTicketForIncident 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: Deprecated: Use linkJiraTicketForAlert instead

Arguments

ArgumentTypeDescription
incidentIdUUID!ID of the incident
integrationIdUUID!ID of the integration
ticketUrlString!URL of the Jira ticket

Returns

LinkJiraTicketForIncident

Example

mutation LinkJiraTicketForIncident($incidentId: UUID!, $integrationId: UUID!, $ticketUrl: String!) {
  linkJiraTicketForIncident(incidentId: $incidentId, integrationId: $integrationId, ticketUrl: $ticketUrl) {
    jiraTicket {
      ticketId
      ticketUrl
      ticketKey
      alertId
      integrationId
      createdBy
      createdAt
    }
  }
}

Types used only by linkJiraTicketForIncident

LinkJiraTicketForIncident

Object type.

FieldTypeDescription
jiraTicketJiraTicketOutputThe created Jira ticket

Related types

JiraTicketOutput, UUID

unlinkJiraTicketForAlert (mutation)

unlinkJiraTicketForAlert 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 Jira Ticket for Alert

Arguments

ArgumentTypeDescription
ticketIdUUID!The ticket ID

Returns

UnlinkJiraTicketForAlert

Example

mutation UnlinkJiraTicketForAlert($ticketId: UUID!) {
  unlinkJiraTicketForAlert(ticketId: $ticketId) {
    unlinked
  }
}

Types used only by unlinkJiraTicketForAlert

UnlinkJiraTicketForAlert

Object type.

FieldTypeDescription
unlinkedBooleanTrue if the ticket was unlinked

Related types

UUID

unlinkJiraTicketForIncident (mutation)

unlinkJiraTicketForIncident 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: Deprecated: Use unlinkJiraTicketForAlert instead

Arguments

ArgumentTypeDescription
ticketIdUUID!The ticket ID

Returns

UnlinkJiraTicketForIncident

Example

mutation UnlinkJiraTicketForIncident($ticketId: UUID!) {
  unlinkJiraTicketForIncident(ticketId: $ticketId) {
    unlinked
  }
}

Types used only by unlinkJiraTicketForIncident

UnlinkJiraTicketForIncident

Object type.

FieldTypeDescription
unlinkedBooleanTrue if the ticket was unlinked

Related types

UUID

updateJiraIntegration (mutation)

updateJiraIntegration 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.

Update a Jira integration

Arguments

ArgumentTypeDescription
apiTokenStringThe personal API token for basic authentication or token authentication; if not provided previous value will be used
defaultTicketFieldsJSONStringDefault values for ticket fields
integrationIdUUID!The integration ID
integrationNameString!A short name to identify the integration
isTokenAuthBooleanWhether the integration is using Token Auth. Defaults to Basic Auth Default: false.
serverUrlString!The domain name for your Jira site
usernameStringThe Jira username for basic authentication; if not provided previous value will be used
webhookConfigJiraWebhookConfigInputWebhook config
webhookEnabledBooleanWhether the Jira webhook is enabled

Returns

UpdateJiraIntegration

Example

mutation UpdateJiraIntegration($integrationId: UUID!, $integrationName: String!, $serverUrl: String!) {
  updateJiraIntegration(integrationId: $integrationId, integrationName: $integrationName, serverUrl: $serverUrl) {
    jiraIntegration {
      integrationId
      integrationName
      serverUrl
      username
      defaultTicketFields
      webhookEnabled
      webhookUrl
      isTokenAuth
      webhookSecretDefined
      webhookSecretMismatchDetected
      createdTime
      updatedTime
    }
  }
}

Types used only by updateJiraIntegration

UpdateJiraIntegration

Object type. Update a Jira integration

FieldTypeDescription
jiraIntegrationJiraIntegrationOutputThe integration that was updated

Related types

JSONString, JiraIntegrationOutput, JiraWebhookConfigInput, UUID

updateJiraIntegrationWebhookSecret (mutation)

updateJiraIntegrationWebhookSecret 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 the Webhook secret configured for a JIRA service integration

Arguments

ArgumentTypeDescription
integrationIdUUID!The integration ID
webhookSecretStringJIRA secret provided for the Webhook

Returns

UpdateJiraIntegrationWebhookSecret

Example

mutation UpdateJiraIntegrationWebhookSecret($integrationId: UUID!) {
  updateJiraIntegrationWebhookSecret(integrationId: $integrationId) {
    jiraIntegration {
      integrationId
      integrationName
      serverUrl
      username
      defaultTicketFields
      webhookEnabled
      webhookUrl
      isTokenAuth
      webhookSecretDefined
      webhookSecretMismatchDetected
      createdTime
      updatedTime
    }
  }
}

Types used only by updateJiraIntegrationWebhookSecret

UpdateJiraIntegrationWebhookSecret

Object type. Update the Webhook secret configured for a JIRA service integration

FieldTypeDescription
jiraIntegrationJiraIntegrationOutputThe integration that was updated

Related types

JiraIntegrationOutput, UUID

Source: The GraphQL API reference

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