Skip to content

Instantly share code, notes, and snippets.

@heyMP
Created December 20, 2022 04:16
Show Gist options
  • Save heyMP/50a79f50f1eb4a4f526474fbf3b3b6dc to your computer and use it in GitHub Desktop.
Save heyMP/50a79f50f1eb4a4f526474fbf3b3b6dc to your computer and use it in GitHub Desktop.
Get Issue Statuses in Projects
query ($issue_id: ID!) {
node(id: $issue_id) {
__typename
... on Issue {
id
title
number
projectV2(number: 1) {
id
items(first: 100) {
nodes {
id
fieldValueByName(name: "Status") {
... on ProjectV2ItemFieldSingleSelectValue {
name
}
}
}
totalCount
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment