Retrieve JIRA Authentications
Getting a JIRA Authentication by id
The following query retrieves a JIRA Authentication by id:
- Query
- cURL
query GetJIRAAuthentication($jiraAuthenticationId: ObjectID!) {
node(id: jiraAuthenticationId) {
... on JiraAuthentication {
name
cloudId
jiraUrl
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 GetJIRAAuthentication($jiraAuthenticationId: ObjectID!) { node(id: jiraAuthenticationId) { ... on JiraAuthentication { name cloudId jiraUrl createdAt updatedAt } } }"}' https://api.lumar.io/graphql
Listing all JIRA Authentications in a given account
The following query retrieves the JIRA Authentications in a given account, by providing the account id in id
argument:
- Query
- cURL
query GetAccountJIRAAuthentications($accountId: ObjectID!) {
node(id: $accountId) {
... on Account {
jiraAuthentications {
nodes {
name
cloudId
jiraUrl
createdAt
updatedAt
jiraIntegrations(first: 100) {
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 GetAccountJIRAAuthentications($accountId: ObjectID!) { node(id: $accountId) { ... on Account { jiraAuthentications { nodes { name cloudId jiraUrl createdAt updatedAt jiraIntegrations(first: 100) { name jiraProjectId jiraIssueTypeId createdAt updatedAt } } } } } }"}' https://api.lumar.io/graphql