Commit 2c48dbb0 authored by Nick Gaskill's avatar Nick Gaskill Committed by Marcel Amirault

Filtering issues and MRs by logical NOT

Combine sections on filtering issues and MRs in groups and projects
parent 3d1878ae
...@@ -97,7 +97,7 @@ and modify them if you have the necessary [permissions](../../permissions.md). ...@@ -97,7 +97,7 @@ and modify them if you have the necessary [permissions](../../permissions.md).
On the Issues List, you can view all issues in the current project, or from multiple On the Issues List, you can view all issues in the current project, or from multiple
projects when opening the Issues List from the higher-level group context. Filter the projects when opening the Issues List from the higher-level group context. Filter the
issue list with a [search query](../../search/index.md#issues-and-merge-requests-per-project), issue list with a [search query](../../search/index.md#filtering-issue-and-merge-request-lists),
including specific metadata, such as label(s), assignees(s), status, and more. From this including specific metadata, such as label(s), assignees(s), status, and more. From this
view, you can also make certain changes [in bulk](../bulk_editing.md) to the displayed issues. view, you can also make certain changes [in bulk](../bulk_editing.md) to the displayed issues.
......
...@@ -13,7 +13,7 @@ which is then reviewed, and accepted (or rejected). ...@@ -13,7 +13,7 @@ which is then reviewed, and accepted (or rejected).
View all the merge requests within a project by navigating to **Project > Merge Requests**. View all the merge requests within a project by navigating to **Project > Merge Requests**.
When you access your project's merge requests, GitLab will present them in a list, When you access your project's merge requests, GitLab will present them in a list,
and you can use the tabs available to quickly filter by open and closed. You can also [search and filter the results](../../search/index.md#issues-and-merge-requests-per-project). and you can use the tabs available to quickly filter by open and closed. You can also [search and filter the results](../../search/index.md#filtering-issue-and-merge-request-lists).
![Project merge requests list view](img/project_merge_requests_list_view.png) ![Project merge requests list view](img/project_merge_requests_list_view.png)
...@@ -21,7 +21,7 @@ and you can use the tabs available to quickly filter by open and closed. You can ...@@ -21,7 +21,7 @@ and you can use the tabs available to quickly filter by open and closed. You can
View merge requests in all projects in the group, including all projects of all descendant subgroups of the group. Navigate to **Group > Merge Requests** to view these merge requests. This view also has the open and closed merge requests tabs. View merge requests in all projects in the group, including all projects of all descendant subgroups of the group. Navigate to **Group > Merge Requests** to view these merge requests. This view also has the open and closed merge requests tabs.
You can [search and filter the results](../../search/index.md#issues-and-merge-requests-per-group) from here. You can [search and filter the results](../../search/index.md#filtering-issue-and-merge-request-lists) from here.
![Group Issues list view](img/group_merge_requests_list_view.png) ![Group Issues list view](img/group_merge_requests_list_view.png)
......
...@@ -17,8 +17,8 @@ When you click **Issues**, you'll see the opened issues assigned to you straight ...@@ -17,8 +17,8 @@ When you click **Issues**, you'll see the opened issues assigned to you straight
You can search through **Open**, **Closed**, or **All** issues. You can search through **Open**, **Closed**, or **All** issues.
You can also filter the results using the search and filter field. This works in the same way as the ones found in the You can also filter the results using the search and filter field, as described below in
per project pages described below. [Filtering issue and merge request lists](#filtering-issue-and-merge-request-lists).
### Issues and MRs assigned to you or created by you ### Issues and MRs assigned to you or created by you
...@@ -27,19 +27,26 @@ on the search field on the top-right of your screen: ...@@ -27,19 +27,26 @@ on the search field on the top-right of your screen:
![shortcut to your issues and mrs](img/issues_mrs_shortcut.png) ![shortcut to your issues and mrs](img/issues_mrs_shortcut.png)
### Issues and merge requests per project ### Filtering issue and merge request lists
If you want to search for issues present in a specific project, navigate to Follow these steps to filter the **Issues** and **Merge Requests** list pages within projects and
a project's **Issues** tab, and click on the field **Search or filter results...**. It will groups:
display a dropdown menu, from which you can add filters per author, assignee, milestone,
release, label, weight, confidentiality, and "my-reaction" (based on your emoji votes).
When done, press **Enter** on your keyboard to filter the issues.
![filter issues in a project](img/issue_search_filter_v12_5.png) 1. Click in the field **Search or filter results...**.
1. In the dropdown menu that appears, select the attribute you wish to filter by (for example,
author, assignee, milestone, and so on).
1. Select or type the operator to use for filtering the attribute. The following operators are
available:
- `=`: Is
- `!=`: Is not ([Introduced](https://gitlab.com/gitlab-org/gitlab/issues/18059) in GitLab 12.7)
1. Enter the text to filter the attribute by.
1. Repeat this process to filter by multiple attributes. Multiple attributes are joined by a logical
`AND`.
The same process is valid for merge requests. Navigate to your project's **Merge Requests** tab, For example, filtering by Author `=` Jane and Milestone `!=` 12.6 filters for the issues where Jane
and click **Search or filter results...**. Merge requests can be filtered by author, assignee, is the author and the milestone is not 12.6.
approver, milestone, release, label, "my-reaction", "work in progess" status, and target branch.
![filter issues in a project](img/issue_search_filter_v12_7.png)
### Filtering by **None** / **Any** ### Filtering by **None** / **Any**
...@@ -66,16 +73,6 @@ You can filter issues and merge requests by specific terms included in titles or ...@@ -66,16 +73,6 @@ You can filter issues and merge requests by specific terms included in titles or
![filter issues by specific terms](img/issue_search_by_term.png) ![filter issues by specific terms](img/issue_search_by_term.png)
### Issues and merge requests per group
Similar to **Issues and merge requests per project**, you can also search for issues
within a group. Navigate to a group's **Issues** tab and query search results in
the same way as you do for projects.
![filter issues in a group](img/group_issues_filter.png)
The same process is valid for merge requests. Navigate to your project's **Merge Requests** tab.
## Search history ## Search history
You can view recent searches by clicking on the little arrow-clock icon, which is to the left of the search input. Click the search entry to run that search again. This feature is available for issues and merge requests. Searches are stored locally in your browser. You can view recent searches by clicking on the little arrow-clock icon, which is to the left of the search input. Click the search entry to run that search again. This feature is available for issues and merge requests. Searches are stored locally in your browser.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment