---
title: "getPullRequest"
canonical: "https://support.appfire.com/space/BCCLI/65768792/getPullRequest"
format: markdown
---
> Macro (aura-html)

See also: [Actions](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766635)

> Macro (details)
> 
> | **Description** | Get pull request information under a repository. Pull request can be identified by number. Name can also be used to identify the pull request, but this is done via name search determined lookup on a list of pull requests which uses a most recent filter based on started date and defaulting to the last 365 days equivalent to using '--startDate -365d'. Use '--startDate @all' to avoid the limit. |
> | --- | --- |
> | **Required Parameters** | [repository](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766277), [pullRequest](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768359) |
> | **Optional Parameters** | [workspace](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65765634), [outputType](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768516), [file](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768095), [append](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65765977), [encoding](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766303) |
> | **Type** | [Get](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768932/Action+Types#ActionTypes-Get) |
> | **Category** | [Pull Requests](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766329/Action+Categories#ActionCategories-PullRequests) |
> | **Output Formats** |  |
> | **Replacement Variables** | pullRequest, pullRequestName, repository, repositoryFullKey, repositoryName, repositoryUuid, workspace, workspaceName, workspaceUuid |
> | **Since Version** | 9.3 |
> | **Examples** | [getPullRequest](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766633/Examples#getPullRequest) |

## Related How To's

> Macro (cql-query)