# Pull Requests

This blog will go over how to use [Pull Requests](https://delivery.usehaystack.io/team/pull-requests) page in Haystack.

<figure><img src="https://downloads.intercomcdn.com/i/o/1021888877/1e12a4368aa76ae21e4bb9f3/Screen+Shot+2024-04-15+at+3_50_20+PM.png" alt=""><figcaption></figcaption></figure>

## Recent Activity <a href="#h_5c868a5c33" id="h_5c868a5c33"></a>

### Activity Bubbles <a href="#h_0e1b68b8dd" id="h_0e1b68b8dd"></a>

Haystack combines all commits, comments, approvals as a activity bubble in the progress bar. The more activities there are, the bigger the bubble is.

You can hover each bubble to see the corresponding activity.

The blue line starts from first activity "opened pr" all the way to PR getting merged or closed.

<figure><img src="https://downloads.intercomcdn.com/i/o/1016261818/40905f7a56367b47928e904c/Screen+Shot+2024-04-09+at+3_47_57+PM.png?expires=1712675361&#x26;signature=bd49234cd8d9f4c94e23407ad82db87109a760dca0766e2c47c222239fcca146" alt=""><figcaption></figcaption></figure>

### Time in Review <a href="#h_ab1703a5d4" id="h_ab1703a5d4"></a>

Time in status shows how long it has been in that state. There are 3 states a Pull Request can be in

* **Draft**: PR is in draft state
* **Review required**: PR is open & not approved
* **Approved**: PR has at least one approval

<figure><img src="https://downloads.intercomcdn.com/i/o/1016256413/477f1a93a4cb534d5e5efa45/Screen+Shot+2024-04-09+at+3_44_12+PM.png?expires=1712675361&#x26;signature=ebf49a8ac794ccaf91c6f8b4b092a425f4c79b756c24b4b50e7a791b099404d6" alt=""><figcaption></figcaption></figure>

### Member Filters <a href="#h_fccfd13fbf" id="h_fccfd13fbf"></a>

Member filter allows you to see all the issues in that cycle.

<figure><img src="https://downloads.intercomcdn.com/i/o/1016253874/7e65753612764db31a24d835/Screen+Shot+2024-04-09+at+3_42_24+PM.png?expires=1712675361&#x26;signature=eefca8db5938a69dd6cc109a95798454e164286fecef76f3403cf3ec49947cae" alt=""><figcaption></figcaption></figure>

## Risks <a href="#h_7200a8226a" id="h_7200a8226a"></a>

### Active Risks <a href="#h_2233b21f39" id="h_2233b21f39"></a>

You can see the active risk on the right side panel.

Clicking on it will filter the PRs with that specific risk.

<figure><img src="https://downloads.intercomcdn.com/i/o/1016289254/940df3be246c96459f5e13be/Screen+Shot+2024-04-09+at+4_06_38+PM.png?expires=1712675361&#x26;signature=e643e46ef3a0a09caf2f38348c3bea3e5e4313abc601b089577bc58a36c74090" alt=""><figcaption></figcaption></figure>

### Update Risks <a href="#h_3113b35387" id="h_3113b35387"></a>

You can configure risks by visiting [PR Risks Settings page](https://delivery.usehaystack.io/team/settings/risks/pull-requests).

<figure><img src="https://downloads.intercomcdn.com/i/o/1016274533/63e2f8116a209a7851718cb6/Screen+Shot+2024-04-09+at+3_56_31+PM.png?expires=1712675361&#x26;signature=11ed04a8ac425076a258a4214ae1e57dcba2071ba550d7c780d0a4c837ae02c6" alt=""><figcaption></figcaption></figure>

There are 6 risks that can be configured. Each configuration can mark a PR if it fits it's conditions.

* **High Review Time**: Marked when time since PR opened above given threshold. Time in Draft state does not count for Review Time.
* **No Activity**: Marked when PR hasn't had any activity above given threshold. An activity is anything from commit, comments, approvals, description changes, requesting review and so on.
* **No Reviewer**: Mark when PR has 0 reviewers requested.
* **Large Pull Request**: Marked when PR Line Changes is above given threshold. Line change count is the sum of additions & removals of lines..
* **Stuck in Discussion**: Marked when PR has comments above given threshold.
* **Not Linked to Jira Issue**: Marked when PR is not linked to a Jira issue. Haystack uses [JIRA's referrence issue document](https://support.atlassian.com/jira-software-cloud/docs/reference-issues-in-your-development-work/) to mark if a PR is linked or not.

{% hint style="info" %}
You can set slack alerts [Not Linked to Jira Issue](https://cdn.zappy.app/8f67967da513a74312608feb244690a4.png) via [Team Alerts Settings page](https://delivery.usehaystack.io/team/settings/alerts)
{% endhint %}

## Customizable Views <a href="#h_f3743ad48c" id="h_f3743ad48c"></a>

Haystack allows you to customize your view. We'll go over each section one by one.

<figure><img src="https://downloads.intercomcdn.com/i/o/1016297055/3a7e2869b79079b7d644df6c/Screen+Shot+2024-04-09+at+4_12_00+PM.png?expires=1712675361&#x26;signature=d4c1fe77ef66ede2908e30d42cf7fff9f06f06500dc5a8a9e0fe76b738c81adb" alt=""><figcaption></figcaption></figure>

### Update Columns <a href="#h_a84a892de1" id="h_a84a892de1"></a>

You can group Pull Requests based on

* Status (default)
* Risks
* Author
* Reviewer
* Labels
* Repository
* Issues
* None

<figure><img src="https://downloads.intercomcdn.com/i/o/1016296360/9d0cbaa33030dff97136ce49/Screen+Shot+2024-04-09+at+4_11_27+PM.png?expires=1712675361&#x26;signature=e5980faf467404258a7759f5326712dc2407b926b5a4fd65d3b34dad7358cfdd" alt=""><figcaption></figcaption></figure>

### Update Sort Order <a href="#h_341b18de90" id="h_341b18de90"></a>

You can sort the issues based on

* Last updated (default)
* Opened at
* Comments
* Line Changes

### Hidden PRs <a href="#h_72d312d97d" id="h_72d312d97d"></a>

You can hide any pr that you don't want to see in this page.

<figure><img src="https://downloads.intercomcdn.com/i/o/1016306776/23282394347ff41fd286656c/Screen+Shot+2024-04-09+at+4_19_18+PM.png?expires=1712675361&#x26;signature=59826e25a5691a7b59e727d12f8217922b4ca80ab723e745a006af531a546dd3" alt=""><figcaption></figcaption></figure>

You can see hidden PRs by toggling the `Show hidden PRs` button.

<figure><img src="https://downloads.intercomcdn.com/i/o/1016306298/a9bcb208c6e5602769788094/Screen+Shot+2024-04-09+at+4_18_57+PM.png?expires=1712675361&#x26;signature=390f2ff0618c9c0e7fce7d17aeba848afb9077479e63eb97ca4edc411edb7a65" alt=""><figcaption></figcaption></figure>

**Note**: Showing & hiding works individually for each team. If you hide a PR from one team, it will still continue to show in another team unless it's marked hidden from their as well.

***

## FAQ <a href="#h_9482070bbc" id="h_9482070bbc"></a>

### Does Pull Requests page show merged PRs? <a href="#h_600d674432" id="h_600d674432"></a>

No, only open Pull Requests are shown in this page. Once a Pull Request is merged or closed, they will disappear.

### Whose work does Pull Requests page show? <a href="#h_947d37ff15" id="h_947d37ff15"></a>

The following settings have effect on what is being shown in Pull Request page.

* [Team Member Settings](https://cdn.zappy.app/f6a3b7c457c1eea86d54e64e0f303d77.png): All PRs that were made by your members will be shown.
* ["Include non-team members work" Setting](https://cdn.zappy.app/c0bcdaef04f87197f64f955e721c0de2.png): All PRs that have corresponding issue in that board will be shown regardless if the member is tagged as part of your team or not.

You can configure this [Team Member Settings](https://delivery.usehaystack.io/team/settings/members) page.

### Can I send Pull Request Alerts to Slack? <a href="#h_17572a2e11" id="h_17572a2e11"></a>

Haystack only supports [Not Linked to Jira Issue](https://cdn.zappy.app/8f67967da513a74312608feb244690a4.png) via [Team Alerts Settings page](https://delivery.usehaystack.io/team/settings/alerts).

Other PR Risks do have Slack alerts supported.

### How does Haystack know if a Pull Request is linked to an Issue? <a href="#h_d526b5f34f" id="h_d526b5f34f"></a>

Haystack links Pull Requests to Issues by using [JIRA's referrence issue document](https://support.atlassian.com/jira-software-cloud/docs/reference-issues-in-your-development-work/).

### How can I check which Pull Requests are not linked to any issue? <a href="#h_c706a23f55" id="h_c706a23f55"></a>

You can check this 2 ways

1. Creating a [new report](https://cdn.zappy.app/ff297358ed8aa64ba563da69012508a6.png) with the metric `PRs unlinked`.
   1. If you click on any point in the graph, it'll show you the whole list of unlinked Pull Requests in the given segment.
2. Filtering [Not Linked to Jira Issue](#h_7200a8226a)[ ](https://help.usehaystack.io/features/pull-requests)risk.

<br>
