Get-GitHubIssueForOrg
SYNOPSIS
List organization issues assigned to the authenticated user
SYNTAX
__AllParameterSets
Get-GitHubIssueForOrg [-Org] <string> [-Filter <string>] [-State <string>] [-Labels <string>]
[-Type <string>] [-Sort <string>] [-Direction <string>] [-Since <datetime>] [-PerPage <long>]
[-Page <long>] [-AllResults] [-Accept <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHIssueForOrg
DESCRIPTION
The Get-GitHubIssueForOrg cmdlet invokes the GET method of the /orgs/{org}/issues endpoint (List organization issues assigned to the authenticated user)
List issues in an organization assigned to the authenticated user. [!NOTE] GitHub’s REST API considers every pull request an issue, but not every issue is a pull request. For this reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by the ‘pull_request’ key. Be aware that the ‘id’ of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull request id, use the “List pull requests (https://docs.github.com/rest/pulls/pulls#list-pull-requests)” endpoint.
This endpoint supports the following custom media types. For more information, see “Media types (https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types).”
- ‘application/vnd.github.raw+json’: Returns the raw markdown body. Response will include ‘body’. This is the default if you do not pass any specific media type.
- ‘application/vnd.github.text+json’: Returns a text only representation of the markdown body. Response will include ‘body_text’.
- ‘application/vnd.github.html+json’: Returns HTML rendered from the body’s markdown. Response will include ‘body_html’.
- ‘application/vnd.github.full+json’: Returns raw, text, and HTML representations. Response will include ‘body’, ‘body_text’, and ‘body_html’.
Endpoint: GET /orgs/{org}/issues API version: 2026-03-10
EXAMPLES
EXAMPLE 1
Get-GitHubIssueForOrg -Org 'github'
Invokes GET /orgs/{org}/issues
EXAMPLE 2
Get-GitHubIssueForOrg -Org 'github' -AllResults
Returns the items of every page
PARAMETERS
-Accept
The Accept header (media type) of the request Default value: application/vnd.github+json
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-AllResults
Follows the pagination links & returns the items of every page. 100 items are requested per page unless the per page parameter is used
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Direction
The direction to sort the results by.
Query parameter [ direction ]
Default value: desc
Allowed values: ‘asc’, ‘desc’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Filter
Indicates which sorts of issues to return. ‘assigned’ means issues assigned to you. ‘created’ means issues created by you. ‘mentioned’ means issues mentioning you. ‘subscribed’ means issues you’re subscribed to updates for. ‘all’ or ‘repos’ means all issues you can see, regardless of participation or creation.
Query parameter [ filter ]
Default value: assigned
Allowed values: ‘assigned’, ‘created’, ‘mentioned’, ‘subscribed’, ‘repos’, ‘all’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Labels
A list of comma separated label names. Example: ‘bug,ui,@high’
Query parameter [ labels ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Org
The organization name. The name is not case sensitive.
Path parameter [ org ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Page
The page number of the results to fetch. For more information, see “Using pagination in the REST API (https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).”
Query parameter [ page ]
Default value: 1
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PerPage
The number of results per page (max 100). For more information, see “Using pagination in the REST API (https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).”
Query parameter [ per_page ]
Default value: 30
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Since
Only show results that were last updated after the given time. This is a timestamp in ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) format: ‘YYYY-MM-DDTHH:MM:SSZ’.
Query parameter [ since ]
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Sort
What to sort results by.
Query parameter [ sort ]
Default value: created
Allowed values: ‘created’, ‘updated’, ‘comments’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-State
Indicates the state of the issues to return.
Query parameter [ state ]
Default value: open
Allowed values: ‘open’, ‘closed’, ‘all’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Type
Can be the name of an issue type.
Query parameter [ type ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Objects with properties named like the path parameters can be piped to this function
{{ Fill in the Description }}
System.String
{{ Fill in the Description }}
OUTPUTS
The response of the GitHub API (objects
{{ Fill in the Description }}
NOTES
OperationId: issues/list-for-org Category: issues / issues Not enabled for GitHub Apps