Product Releases: API to list approvers

joži
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 12, 2023

Does JIRA have API to list approvers and the status of approval for Releases in a Project?

1 answer

0 votes
Jones_ David December 12, 2024

This is unacceptable that we cannot export this information easily. We are going through an audit and are under scrutiny for choosing a platform that cannot produce this information when requested. 

Jones_ David December 16, 2024

I have found that you can use the graphql explorer to fetch this information. 

Navigate to your instance's graphql - https://<your org>.atlassian.net/gateway/api/graphql

Then you can run this query to get the approver information: 

query ReleaseHistoryQuery {
jira @optIn(to: "JiraVersionDriverResult") {
jiraProjectByKey(cloudId: "<your cloud id>", key: "<your project key>"){
key
projectType
id
versions(filter:RELEASED) {
totalCount
edges {
node {
name
versionId
status
description
startDate
releaseDate
issues {
edges {
node{
issueId
summary
}
}
}
contributors {
edges {
node {
accountId
name
}
}
}
driverData {
driver {
accountId
name
}
}
approvers {
edges {
node {
user {
accountId
name
}
}
}
}
}
}
}
}
}
}

 You'll need to add a header to allow the jiraProjectByKey:

{"x-experimentalapi": "jiraProjectByKey"}

This worked for us, be aware that you need to manage the filter on versions. By default, the versions filter to "unreleased" 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events