Create JIRA Integrations
The following mutation creates a JIRA Integration for a given JIRA Authentication:
- Query
- cURL
mutation CreateJIRAIntegration($jiraAuthenticationId: ObjectID!, $name: String!, $jiraProjectId: String!, $jiraIssueTypeId: String!) {
createJiraIntegration(
input: {
jiraAuthenticationId: $jiraAuthenticationId
name: $name
jiraProjectId: $jiraProjectId
jiraIssueTypeId: $jiraIssueTypeId
}
) {
jiraIntegration {
id
name
jiraProjectId
jiraIssueTypeId
createdAt
updatedAt
}
}
}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"mutation CreateJIRAIntegration($jiraAuthenticationId: ObjectID!, $name: String!, $jiraProjectId: String!, $jiraIssueTypeId: String!) { createJiraIntegration( input: { jiraAuthenticationId: $jiraAuthenticationId name: $name jiraProjectId: $jiraProjectId jiraIssueTypeId: $jiraIssueTypeId } ) { jiraIntegration { id name jiraProjectId jiraIssueTypeId createdAt updatedAt } } }"}' https://api.lumar.io/graphql
caution
JIRA Project Id and JIRA Issue Type Id need to correspond to your JIRA projects and issue types.