Does JIRA have API to list approvers and the status of approval for Releases in a Project?
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.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.