Retrieve JIRA Integrations
Getting an JIRA Integration by id
The following query retrieves a JIRA Integration by id:
- Query
- cURL
query GetJIRAIntegration($jiraIntegrationId: ObjectID!) {
node(id: $jiraIntegrationId) {
... on JiraIntegration {
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":"query GetJIRAIntegration($jiraIntegrationId: ObjectID!) { node(id: $jiraIntegrationId) { ... on JiraIntegration { name jiraProjectId jiraIssueTypeId createdAt updatedAt } } }"}' https://api.lumar.io/graphql
Getting the JIRA integration linked to a given test suite
The following query retrieves the JIRA Integration linked to a given test suite:
- Query
- cURL
query GetTestSuiteJIRAIntegrations($testSuiteId: ObjectID!) {
node(id: $testSuiteId) {
... on TestSuite {
testSuiteJiraIntegration {
jiraIntegration {
id
}
}
}
}
}
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":"query GetTestSuiteJIRAIntegrations($testSuiteId: ObjectID!) { node(id: $testSuiteId) { ... on TestSuite { testSuiteJiraIntegration { jiraIntegration { id } } } } }"}' https://api.lumar.io/graphql