# Feature OP-11685 - Show only filtered WP-Types in WP-Create-Button

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-11685

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a user  
**I want to** types matching the current view  
**so that** I don't get a huge list of types thrown my way while I'm in the view "Known Bugs"

Probably the most common filter (especially for first time users) is to start filtering by type. Considering that OpenProject is probably most often used for software (or software like) development, every instance is pretty much guaranteed to have a view with all open bug reports.

The create work package button would benefit greatly in usability and workflow time when it only shows the types the current view is filtering OR directly use the appropriate type, if only one type ends up matching.

**Acceptance criteria**

  - Create button over work package table only shows filtered work package types
  - That includes "filtering" and "unfiltering" the types
  - If only one type ends up after reduction, directly open creation slide over with that type
  - Open original full type dropdown when clicked with the option/alternate key. (This is pretty common for user interfaces to show more/advanced options)

**Out Of Scope**

  - Take "Is Milestone" filter into account. (My personal opinion is that this filter should be deprecated and re-added as operation in the type filter)
