# projectsWhereUserHasPermission() / spacesWhere... in JQL

URL: https://goingstellar.ro/reference/jql/projectswhereuserhaspermission/

projectsWhereUserHasPermission(permission) expands to the projects in which you hold a given permission. The new docs call it spacesWhereUserHasPermission() and both names run. Use it to narrow a search to projects where you can edit, assign or resolve work.

## Syntax

```
projectsWhereUserHasPermission("permission")
spacesWhereUserHasPermission("permission")
```

## Arguments

- `permission` (optional: no): The name of a project permission, in quotes when it has spaces, such as "Edit Issues" or "Assign Issues". Exactly one argument is required. The docs say the function is only available when you are logged in.

## Works with

- Fields: project (called Space in the docs)
- Operators: IN, NOT IN
- Not with: =, !=, ~, !~, >, >=, <, <=, IS, IS NOT, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED

## Examples

```
project in projectsWhereUserHasPermission("Assign Issues") AND assignee is EMPTY AND statusCategory != Done
```

Unassigned open work in projects where you are allowed to assign it. The list only holds work you can act on. Run on Jira Cloud on 2026-11-29.

```
project in spacesWhereUserHasPermission("Edit Issues") AND statusCategory != Done ORDER BY updated DESC
```

Open work you can edit, most recently changed first. It is written with the new function name. Run on Jira Cloud on 2026-11-29.

```
project in projectsWhereUserHasPermission("Transition Issues") AND status = "In Progress"
```

Work in progress that you are able to move forward. Handy for a personal stand-up board. Run on Jira Cloud on 2026-11-29.

```
project in projectsWhereUserHasPermission("Edit Issues") AND project not in projectsWhereUserHasPermission("Delete Issues")
```

Projects where you can edit but not delete work. Two permissions in one query show where your rights stop short. Run on Jira Cloud on 2026-11-29.

```
project in projectsWhereUserHasPermission("Edit Issues") AND assignee = currentUser() AND statusCategory != Done
```

Your own open work in projects where you hold the edit permission. Combine it with currentUser() to build a safe personal filter. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- The permission name must match one that exists, and the new wording is rejected. The doc example `"Resolve work items"` fails with "Function 'spacesWhereUserHasPermission' can not generate a list of projects for permission 'Resolve work items'; the permission does not exist." Use `"Resolve Issues"` instead. `"Edit work items"` fails the same way; `"Edit Issues"` works. (checked on Jira Cloud, November 2026)
- Capitalisation of the permission is not checked: `"edit issues"` is accepted. Spelling and wording are checked. `"Edit Tickets"` and the constant style `EDIT_ISSUES` both return the "permission does not exist" error. (checked on Jira Cloud, November 2026)
- Exactly one argument is required. With none you get "expected '1' arguments but received '0'", and with two permissions "expected '1' arguments but received '2'". Use two separate function calls joined by AND or OR. (checked on Jira Cloud, November 2026)
- `project = projectsWhereUserHasPermission("Edit Issues")` fails with "Operator '=' does not support the list value". The docs add that the check is made per project: if a permission is given to the reporter, you can see work in the list that you did not report, so you may still be unable to edit some of it. (checked on Jira Cloud, November 2026)

## Questions and answers

### Which permission names can I use?

Use the names from the permissions list of a Jira project, such as "Edit Issues", "Assign Issues", "Resolve Issues" or "Browse Projects". An unknown name returns a "permission does not exist" error.

## Related

- [projectsLeadByUser()](https://goingstellar.ro/reference/jql/projectsleadbyuser/)
- [project](https://goingstellar.ro/reference/jql/project-field/)
- [currentUser()](https://goingstellar.ro/reference/jql/currentuser/)
- [IN](https://goingstellar.ro/reference/jql/in-operator/)
- [NOT IN](https://goingstellar.ro/reference/jql/not-in-operator/)
- [assignee](https://goingstellar.ro/reference/jql/assignee-field/)

## Sources

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

