# type (issuetype) in JQL: syntax and examples

URL: https://goingstellar.ro/reference/jql/type-field/

The type field matches the work type of a work item: Bug, Task, Story, Epic, Subtask and any custom type your admin added. Search by name or by ID. The old name `issuetype` and the newer alias `workType` both work.

## Syntax

```
type = Bug
issuetype in (Bug, Task)
workType not in (Epic, Subtask)
type in standardIssueTypes()
```

## Works with

- Field type: WORK_TYPE, with auto-complete
- Names: type, issuetype, workType
- Operators: =, !=, IS, IS NOT, IN, NOT IN
- Functions: standardIssueTypes() and subTaskIssueTypes() with IN and NOT IN (found by running them; the docs list none)
- Not with: ~, !~, >, >=, <, <=, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED

## Examples

```
type = Bug AND statusCategory != Done ORDER BY priority DESC, created ASC
```

Open bugs with the most urgent first and, within a priority, the oldest first. A weekly bug triage list. Run on Jira Cloud on 2026-11-29.

```
type in (Bug, Task) AND project = WEB AND statusCategory != Done
```

Unfinished bugs and tasks in one project, without stories and epics getting in the way. Run on Jira Cloud on 2026-11-29.

```
type not in (Epic, Subtask) AND project = MOB AND sprint is EMPTY AND statusCategory != Done
```

Plannable work that is not in any sprint, with the containers and the sub-tasks filtered out. Run on Jira Cloud on 2026-11-29.

```
type = Epic AND project = WEB AND statusCategory != Done ORDER BY created ASC
```

The epics that are still running, oldest first, for a quarterly roadmap check. Run on Jira Cloud on 2026-11-29.

```
type in subTaskIssueTypes() AND resolution = Unresolved AND assignee is EMPTY
```

Open sub-tasks without an owner, whatever the sub-task type is called in each project. Run on Jira Cloud on 2026-11-29.

```
issuetype = Bug AND created >= -30d
```

Bugs raised in the last 30 days, written with the classic field name. It runs the same as type. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- The name has to exist, or the search is rejected. `type = Defect` returns "The value 'Defect' does not exist for the field 'type'." The same happens with the docs' own example `workType in (Bug,Improvement)` in any space that has no Improvement type, so check your type names first (checked on Jira Cloud, November 2026).
- Only the JQL names work. `"work type" = Bug` returns "Field 'work type' does not exist or you do not have permission to view it." Use `type`, `issuetype` or `workType` (checked on Jira Cloud, November 2026).
- Type names come from the space. Use `type in subTaskIssueTypes()` when you want every sub-task type, and `type in standardIssueTypes()` for the non-sub-task types, instead of listing names by hand.
- Types have no history search: `type was Bug` returns "History searches do not support the  'type' field." For the same reason, `type CHANGED` fails, and `type ~ Bug` returns "The operator '~' is not supported by the 'type' field."

## Ready-made queries

- [Open epics](https://goingstellar.ro/tools/jql-examples/#open-epics)
- [Open subtasks](https://goingstellar.ro/tools/jql-examples/#subtasks)
- [Open work without subtasks in the list](https://goingstellar.ro/tools/jql-examples/#no-subtasks)
- [Open high-priority bugs](https://goingstellar.ro/tools/jql-examples/#high-priority-bugs)

## Questions and answers

### Is it type, issuetype or workType?

All three run on Jira Cloud and return the same work. `issuetype` is the classic name; the current docs use `type` and the alias `workType`.

## Related

- [IN](https://goingstellar.ro/reference/jql/in-operator/)
- [NOT IN](https://goingstellar.ro/reference/jql/not-in-operator/)
- [standardIssueTypes()](https://goingstellar.ro/reference/jql/standardissuetypes/)
- [subtaskIssueTypes()](https://goingstellar.ro/reference/jql/subtaskissuetypes/)
- [parent](https://goingstellar.ro/reference/jql/parent-field/)
- [project](https://goingstellar.ro/reference/jql/project-field/)

## Sources

- [JQL fields (Atlassian Support, Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/jql-fields/)
- [JQL functions (Atlassian Support, Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/jql-functions/)

