The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Query Change Management configuration in JSM via GraphQL

Ken Young
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 13, 2023

I am tying to access my DevOps in JSM via the GraphQL api.  Specifically I am trying to query the connected services list in Change Management (specifically github) to get a list of services that are connected/configured for our deployment notifications from GitHub.   I can't seem to determine what query to run.  Any suggestions or other that have been able find this information (other than the GUI)?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Ken Young
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 13, 2023

 

There may be a more direct route, but here is the query I was able to utilize using the devOps query using Atlassian's Graphql api:

Atlassian endpoint:  https://my-company.atlassian.net/gateway/api/graphql


query ChangeMgmt {
devOpsServices(cloudId: "--site--", first: 300) {
nodes {
id
name
organizationId
description
compassId
compassRevision
serviceType {
name
}
jiraProjects {
nodes {
relationshipType
description
devOpsService {
name
}
jiraProject {
name
description
key
}
}
}
}
totalCount
}
}

 

The query returns of the of services on my site, and under jiraProjects > nodes the "relationshipType" = "CHANGE_MANAGEMENT for there i have set deployment tracking in my service project.   This works for now but there is possibly/probably a better path to take (i.e. through the JSM/Jira project queries I assume)

0 votes
Joseph Chung Yin
Community Champion
November 13, 2023

@Ken Young -

Since GraphQL is a third party platform, you should contact the vendor directly to obtain technical support.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events