You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add field to retrieve linked issues (closingIssuesReferences) in gh pr view <number> #10529
Describe the feature or problem you’d like to solve
Access to issues linked to Pull Requests in the Development panel. This field is available in GraphQL but not yet exposed in gh CLI. The GraphQL query to retrieve this field was shared in #7097
changed the title [-]Add field to retrieve linked issues in `gh pr view`[/-][+]Add field to retrieve linked issues (`closingIssuesReferences`) in `gh pr view <number>` [/+]on Mar 3, 2025
Hey @vvolkgang, seems reasonable. Thanks for the suggestion!
Acceptance Criteria
Given an PR references an issue to close when I use gh pr view <number> --json closingIssueReferences[, other fields...] then I get a JSON object containing an array of the closingIssuesReferences with issue numbers
Are we looking to have the opposite: gh issue view that shows which PRs would close the issue? Or do we have that already and I'm blind?
HI @EdouardF, I don't think this field exists for gh issue view, so I suppose we could add that enhancement as well. Will you make another issue for it and link this one?
Given an PR references an issue to close when I use gh pr view <number> --json closingIssueReferences[, other fields...] then I get a JSON object containing closingIssuesReferences as an array of referenced issues with sufficient details to locate the issue:
Activity
[-]Add field to retrieve linked issues in `gh pr view`[/-][+]Add field to retrieve linked issues (`closingIssuesReferences`) in `gh pr view <number>` [/+]jtmcg commentedon Mar 4, 2025
Hey @vvolkgang, seems reasonable. Thanks for the suggestion!
Acceptance Criteria
Given an PR references an issue to close
when I use
gh pr view <number> --json closingIssueReferences[, other fields...]then I get a JSON object containing an array of the closingIssuesReferences with issue numbers
EdouardF commentedon Mar 5, 2025
Are we looking to have the opposite:
gh issue viewthat shows which PRs would close the issue?Or do we have that already and I'm blind?
jtmcg commentedon Mar 6, 2025
HI @EdouardF, I don't think this field exists for
gh issue view, so I suppose we could add that enhancement as well. Will you make another issue for it and link this one?babakks commentedon Apr 14, 2025
@williammartin @iamazeem As of our discussion in the PR #10544, here's the updated acceptance criteria:
Acceptance Criteria
Given an PR references an issue to close
when I use
gh pr view <number> --json closingIssueReferences[, other fields...]then I get a JSON object containing
closingIssuesReferencesas an array of referenced issues with sufficient details to locate the issue:Note that the nested structure (for
repositoryandownerfields) is mainly to keep the schema consistent withgh repo view --jsonoutput.