Skip to content

Commit

Permalink
[2023-01-27]: Sorting across all layouts on Projects (github#34141)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com>
  • Loading branch information
guntrip and sabrowning1 authored Feb 3, 2023
1 parent e5c99ab commit e7ae3d3
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ In the board layout, you can can choose which columns to display. The available

{% endif %}

{% ifversion projects-v2-consistent-sorting %}

## Sorting by field values

You can sort items by a field value.

{% note %}

**Note:** When a board is sorted, you cannot manually reorder items within a column. You can continue to move items from column to column.

{% endnote %}

{% data reusables.projects.customize.sort %}

{% endif %}

{% ifversion projects-v2-numeric-summary %}

## Showing the sum of a number field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,21 @@ You can choose the density of items on your roadmap. You can zoom in to show one

![Screenshot showing the zoom level options](/assets/images/help/projects-v2/roadmap-zoom-menu.png)

{% ifversion projects-v2-consistent-sorting %}

## Sorting by field values

You can sort items by a field value.

{% note %}

**Note:** When a roadmap is sorted, you cannot manually reorder rows.

{% endnote %}

{% data reusables.projects.customize.sort %}

{% endif %}

## Showing and hiding fields

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,7 @@ You can sort items by a field value.

{% endnote %}

{% data reusables.projects.open-view-menu %}
1. Click **Sort**.
![Screenshot showing the sort menu item](/assets/images/help/projects-v2/sort-menu-item.png)
1. Click the field you want to sort by.
![Screenshot showing the sort menu](/assets/images/help/projects-v2/sort-menu.png)
2. Optionally, to change the direction of the sort, click {% octicon "sort-desc" aria-label="the sort icon" %}.
![Screenshot showing sort order option](/assets/images/help/projects-v2/sort-order.png)
3. Optionally, to remove a sort, click {% octicon "x" aria-label="the x icon" %} **No sorting** at the bottom of the list.
![Screenshot showing "no sorting"](/assets/images/help/projects-v2/no-sorting.png)

Alternatively, open the project command palette by pressing {% data variables.projects.command-palette-shortcut %} and start typing "Sort by."
{% data reusables.projects.customize.sort %}

{% ifversion projects-v2-numeric-summary %}

Expand Down
6 changes: 6 additions & 0 deletions data/features/projects-v2-consistent-sorting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Issue 9056
# Ability to sort roadmaps and boards too
versions:
fpt: '*'
ghec: '*'
ghes: '>=3.9'
11 changes: 11 additions & 0 deletions data/reusables/projects/customize/sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% data reusables.projects.open-view-menu %}
1. Click **Sort**.
![Screenshot showing the sort menu item](/assets/images/help/projects-v2/sort-menu-item.png)
1. Click the field you want to sort by.
![Screenshot showing the sort menu](/assets/images/help/projects-v2/sort-menu.png)
1. Optionally, to change the direction of the sort, click {% octicon "sort-desc" aria-label="the sort icon" %}.
![Screenshot showing sort order option](/assets/images/help/projects-v2/sort-order.png)
1. Optionally, to remove a sort, click {% octicon "x" aria-label="the x icon" %} **No sorting** at the bottom of the list.
![Screenshot showing "no sorting"](/assets/images/help/projects-v2/no-sorting.png)

Alternatively, open the project command palette by pressing {% data variables.projects.command-palette-shortcut %} and start typing "Sort by."

0 comments on commit e7ae3d3

Please sign in to comment.