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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID | Filter by integration ID |
Returns
Example
query GetJiraIntegrations {
getJiraIntegrations {
integrationId
integrationName
serverUrl
username
defaultTicketFields
webhookEnabled
webhookUrl
isTokenAuth
webhookSecretDefined
webhookSecretMismatchDetected
createdTime
updatedTime
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | Jira integration ID |
project | Int | Filter by Jira project ID |
requiredFieldsOnly | Boolean | Filter 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
getJiraIssueTypesJiraIssueTypeFieldAllowedValueOutput
JiraIssueTypeFieldAllowedValueOutputObject type.
| Field | Type | Description |
|---|---|---|
id | String | The option's ID |
displayValue | String! | The option's user friendly display value |
children | [JiraIssueTypeFieldAllowedValueOutput!] | For dependant option types, the option's children |
JiraIssueTypeFieldOutput
JiraIssueTypeFieldOutputObject type.
| Field | Type | Description |
|---|---|---|
key | String! | The field key |
name | String! | The field name |
required | Boolean! | If the field is required to create the issue |
hasDefaultValue | Boolean! | If the field has a default value when not set, considering integration level default values configured on Monte Carlo |
hasDefaultValueInJira | Boolean! | If the field has a default value in Jira when not set |
type | String! | The field type |
customType | String | For custom fields, the JIRA custom field type |
itemsType | String | For array types, the type of the items in the array |
allowedValues | [JiraIssueTypeFieldAllowedValueOutput!] | The allowed values for option fields |
defaultValue | JSONString | JSON-string representing the JIRA defined default value for this field |
isMulti | Boolean | For array type fields, indicates if more than one value is allowed |
JiraIssueTypeOutput
JiraIssueTypeOutputObject type.
| Field | Type | Description |
|---|---|---|
id | Int! | The issue type ID |
name | String! | The issue type name |
untranslatedName | String | The issue type untranslated name |
fields | [JiraIssueTypeFieldOutput!]! | The issue type fields |
Related types
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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | Jira integration id |
Returns
[JiraProjectOutput!]
Example
query GetJiraProjects($integrationId: UUID!) {
getJiraProjects(integrationId: $integrationId) {
id
key
name
}
}Types used only by getJiraProjects
getJiraProjectsJiraProjectOutput
JiraProjectOutputObject type.
| Field | Type | Description |
|---|---|---|
id | Int! | The project ID |
key | String! | The project key |
name | String! | The project name |
Related types
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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID | Jira integration id |
serverUrl | String | The domain name for your Jira site |
username | String | The Jira username for basic authentication |
apiToken | String | The personal API token for basic authentication |
Returns
[JiraStatusOutput]
Example
query GetJiraStatuses {
getJiraStatuses {
id
name
}
}Types used only by getJiraStatuses
getJiraStatusesJiraStatusOutput
JiraStatusOutputObject type.
| Field | Type | Description |
|---|---|---|
id | String! | The status ID |
name | String! | The status name |
Related types
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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | Jira integration id |
Returns
[JiraTeamOutput!]
Example
query GetJiraTeams($integrationId: UUID!) {
getJiraTeams(integrationId: $integrationId) {
teamId
displayName
description
teamType
}
}Types used only by getJiraTeams
getJiraTeamsJiraTeamOutput
JiraTeamOutputObject type. A JIRA team details
| Field | Type | Description |
|---|---|---|
teamId | String! | The team ID |
displayName | String! | The team display name |
description | String! | The team description |
teamType | String! | The team type |
Related types
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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | Jira integration ID |
keys | [String!] | Jira user keys (For Jira Data Center) |
accountIds | [String!] | Jira user accountIds (For Jira Cloud) |
Returns
Example
query GetJiraUsers($integrationId: UUID!) {
getJiraUsers(integrationId: $integrationId) {
avatarUrl
displayName
emailAddress
name
accountId
key
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | Jira integration ID |
project | Int! | Jira project ID |
query | String! | The search query |
Returns
Example
query SearchJiraUsers($integrationId: UUID!, $project: Int!, $query: String!) {
searchJiraUsers(integrationId: $integrationId, project: $project, query: $query) {
avatarUrl
displayName
emailAddress
name
accountId
key
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
serverUrl | String! | The domain name for your Jira site |
username | String | The Jira username for basic authentication |
apiToken | String! | The personal API token for basic authentication or token authentication |
isTokenAuth | Boolean | Whether 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
testJiraCredentialsJiraTestCredentialsOutput
JiraTestCredentialsOutputObject type. A Jira test credentials result
| Field | Type | Description |
|---|---|---|
validCredentials | Boolean! | 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
| Argument | Type | Description |
|---|---|---|
apiToken | String | The personal API token for basic authentication or token authentication; if not provided previous value will be used |
defaultTicketFields | JSONString | Default values for ticket fields |
integrationName | String! | A short name to identify the integration |
isTokenAuth | Boolean | Whether the integration is using Token Auth. Defaults to Basic Auth Default: false. |
serverUrl | String! | The domain name for your Jira site |
username | String | The Jira username for basic authentication; if not provided previous value will be used |
webhookConfig | JiraWebhookConfigInput | Webhook config |
webhookEnabled | Boolean | Whether 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
createJiraIntegrationCreateJiraIntegration
CreateJiraIntegrationObject type. Create a Jira integration
| Field | Type | Description |
|---|---|---|
jiraIntegration | JiraIntegrationOutput | The 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
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | ID of the alert |
description | String | Jira ticket description, in Markdown. It is converted to Jira wiki markup. |
fields | JSONString | Jira ticket fields |
integrationId | UUID! | ID of the integration |
issuetype | Int | Jira issue type ID |
project | Int | Jira project ID |
summary | String | Jira 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
createJiraTicketForAlertCreateJiraTicketForAlert
CreateJiraTicketForAlertObject type.
| Field | Type | Description |
|---|---|---|
jiraTicket | JiraTicketOutput | The 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
| Argument | Type | Description |
|---|---|---|
description | String | Jira ticket description, in Markdown. It is converted to Jira wiki markup. |
fields | JSONString | Jira ticket fields |
incidentId | UUID! | ID of the incident |
integrationId | UUID! | ID of the integration |
issuetype | Int | Jira issue type ID |
project | Int | Jira project ID |
summary | String | Jira 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
createJiraTicketForIncidentCreateJiraTicketForIncident
CreateJiraTicketForIncidentObject type.
| Field | Type | Description |
|---|---|---|
jiraTicket | JiraTicketOutput | The 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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
Returns
DeleteJiraIntegration
Example
mutation DeleteJiraIntegration($integrationId: UUID!) {
deleteJiraIntegration(integrationId: $integrationId) {
deleted
}
}Types used only by deleteJiraIntegration
deleteJiraIntegrationDeleteJiraIntegration
DeleteJiraIntegrationObject type. Delete a Jira integration
| Field | Type | Description |
|---|---|---|
deleted | Boolean |
Related types
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
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
linkJiraTicketForAlertLinkJiraTicketForAlert
LinkJiraTicketForAlertObject type.
| Field | Type | Description |
|---|---|---|
jiraTicket | JiraTicketOutput | The created Jira ticket |
Related types
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
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
linkJiraTicketForIncidentLinkJiraTicketForIncident
LinkJiraTicketForIncidentObject type.
| Field | Type | Description |
|---|---|---|
jiraTicket | JiraTicketOutput | The created Jira ticket |
Related types
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
| Argument | Type | Description |
|---|---|---|
ticketId | UUID! | The ticket ID |
Returns
UnlinkJiraTicketForAlert
Example
mutation UnlinkJiraTicketForAlert($ticketId: UUID!) {
unlinkJiraTicketForAlert(ticketId: $ticketId) {
unlinked
}
}Types used only by unlinkJiraTicketForAlert
unlinkJiraTicketForAlertUnlinkJiraTicketForAlert
UnlinkJiraTicketForAlertObject type.
| Field | Type | Description |
|---|---|---|
unlinked | Boolean | True if the ticket was unlinked |
Related types
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
| Argument | Type | Description |
|---|---|---|
ticketId | UUID! | The ticket ID |
Returns
UnlinkJiraTicketForIncident
Example
mutation UnlinkJiraTicketForIncident($ticketId: UUID!) {
unlinkJiraTicketForIncident(ticketId: $ticketId) {
unlinked
}
}Types used only by unlinkJiraTicketForIncident
unlinkJiraTicketForIncidentUnlinkJiraTicketForIncident
UnlinkJiraTicketForIncidentObject type.
| Field | Type | Description |
|---|---|---|
unlinked | Boolean | True if the ticket was unlinked |
Related types
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
| Argument | Type | Description |
|---|---|---|
apiToken | String | The personal API token for basic authentication or token authentication; if not provided previous value will be used |
defaultTicketFields | JSONString | Default values for ticket fields |
integrationId | UUID! | The integration ID |
integrationName | String! | A short name to identify the integration |
isTokenAuth | Boolean | Whether the integration is using Token Auth. Defaults to Basic Auth Default: false. |
serverUrl | String! | The domain name for your Jira site |
username | String | The Jira username for basic authentication; if not provided previous value will be used |
webhookConfig | JiraWebhookConfigInput | Webhook config |
webhookEnabled | Boolean | Whether 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
updateJiraIntegrationUpdateJiraIntegration
UpdateJiraIntegrationObject type. Update a Jira integration
| Field | Type | Description |
|---|---|---|
jiraIntegration | JiraIntegrationOutput | The 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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
webhookSecret | String | JIRA 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
updateJiraIntegrationWebhookSecretUpdateJiraIntegrationWebhookSecret
UpdateJiraIntegrationWebhookSecretObject type. Update the Webhook secret configured for a JIRA service integration
| Field | Type | Description |
|---|---|---|
jiraIntegration | JiraIntegrationOutput | The integration that was updated |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
