---
title: "JQL doc examples that fail after the work item rename"
description: "Atlassian renamed issues to work items and projects to spaces in its JQL pages, and some examples now return errors. We ran each one on Jira Cloud on 29 November 2026. Here is the error and the form that works."
date: 2026-11-29
lang: en
canonical: https://goingstellar.ro/methods/jql-examples-that-fail-after-work-item-space-rename/
author: Going Stellar
publisher: GOING STELLAR S.R.L.
topic: Jira / JQL / Reference
license: CC BY 4.0
alternate_ro: https://goingstellar.ro/ro/metode/exemple-jql-care-pica-dupa-redenumirea-work-item-space/
---

# JQL doc examples that fail after the work item rename

*Atlassian renamed issues to work items and projects to spaces in its JQL pages, and some examples now return errors. We ran each one on Jira Cloud on 29 November 2026. Here is the error and the form that works.*

> Jira · JQL · Reference · 2026-11-29 · https://goingstellar.ro/methods/jql-examples-that-fail-after-work-item-space-rename/

## Key points

- Write issue in …, never work item in …: the new function names work, the words in front do not.
- linkedWorkItems() does not exist; use linkedIssues().
- There is no space field: write project, also with the new spaces…() functions.
- parentSpace fails; parentProject runs.
- Permission names still say Issues: “Resolve Issues”, “Edit Issues”.

## How we checked

We read Atlassian's JQL functions, fields and keywords pages on 29 November 2026 and ran their examples on our own Jira Cloud test site, read only. We replaced only the sample values (ABC-123, ABC, JRA, user names, IDs) with values that exist on our site. Field and function names are exactly as the docs print them.

Examples that fail only because a sample value does not exist on another site, such as a version called “3.14”, are not listed. Everything below fails because of a name.

## 1. “work item in …” is not valid JQL

The function pages now start their examples with `work item in`. JQL reads `work` as a field and stops at the next word:

`Expecting operator but got 'item'.`

This hits the examples for `workItemHistory()`, `watchedWorkItems()`, `votedWorkItems()`, `linkedWorkItems()` and `workItemsWithRemoteLinksByGlobalId()`. The field is still `issue` (or `key`). These run:

`issue in workItemHistory() AND assignee = currentUser()``issue in watchedWorkItems()``issue in votedWorkItems()``issue in workItemsWithRemoteLinksByGlobalId(abc)`

So the new function names work. Only the words in front of them are wrong. The classic names, such as `issueHistory()` and `watchedIssues()`, run too.

## 2. linkedWorkItems() does not exist

Even with `issue` in front, the renamed link function is unknown:

`issue in linkedWorkItems(WEB-25)` → `Unable to find JQL function 'linkedWorkItems(WEB-25)'.`

Use the classic name: `issue in linkedIssues(WEB-25)`, or with a link description, `issue in linkedIssues(WEB-25, "relates to")`. The Work item key page also points to `linkedworkItems()`; that name fails the same way.

## 3. There is no “space” field

The Space field page, the AND keyword page and the space functions all use `space` as a field. Every one of these fails with:

`Field 'space' does not exist or you do not have permission to view it.`

Affected doc examples: `space = "ABC"`, `space = "ABC Project"`, `space = 1234`, `space = JRA and assignee != jsmith`, `space = "New office" and status = "open"`, `space in (JRA,CONF) and fixVersion = "3.14"`, `space in spacesLeadByUser() AND status = Open`, `space in spacesWhereUserHasPermission(…)` and `space in spacesWhereUserHasRole(…)`.

Write `project` instead: `project = WEB`, `project = 10066`, `project in (WEB, MOB) AND status = "To Do"`. The new function names are fine after `project`: `project in spacesLeadByUser()` and `project in spacesWhereUserHasRole("Administrators")` both run.

## 4. parentSpace is not a field

The Parent space page documents `parentSpace = "ABC"` and `parentSpace = 12345`. Both fail with `Field 'parentSpace' does not exist or you do not have permission to view it.`

`parentProject = "WEB"` runs and returns child work items, which matches what the page describes (children whose parent belongs to the given space).

## 5. Permission names did not change

The spacesWhereUserHasPermission() page uses the permission “Resolve work items”, and the same page mentions “Edit work items”. Both are rejected:

`Function 'spacesWhereUserHasPermission' can not generate a list of projects for permission 'Resolve work items'; the permission does not exist.`

The permission names still say Issues: `project in spacesWhereUserHasPermission("Resolve Issues") AND status = Open` runs.

## 6. A typo in one example

The spacesLeadByUser() page shows `pspacesLeadByUser(bill)`. Apart from the `space` field, the extra “p” gives `Unable to find JQL function 'pspacesLeadByUser(bill)'.` With the name fixed and the field set to `project`, `project in spacesLeadByUser()` runs; with no argument it means you.

## What works with the new names

Not everything broke. These new names ran without errors: `workType` as a field (`workType in (Bug, Task)`), `workType in standardWorkTypes()`, `workType in subtaskWorkTypes()`, `workItemKey = WEB-25`, `workItemKey ~ "-25"`, and the functions listed above when the field in front is `issue` or `project`.

Our JQL examples use the classic names throughout, so they run on any Jira Cloud site.

## Sources

1. [Atlassian Support: JQL functions](https://support.atlassian.com/jira-software-cloud/docs/jql-functions/)
2. [Atlassian Support: JQL fields](https://support.atlassian.com/jira-software-cloud/docs/jql-fields/)
3. [Atlassian Support: JQL keywords](https://support.atlassian.com/jira-software-cloud/docs/jql-keywords/)

## Questions and answers

### Why does Jira say “Expecting operator but got 'item'”?

The query starts with “work item in”, copied from Atlassian's examples. JQL reads “work” as a field name. Write “issue in” instead, for example issue in watchedWorkItems().

### Why does Jira say “Field 'space' does not exist”?

The docs call projects spaces now, but the JQL field is still project. Write project = KEY or project in spacesLeadByUser().

## How to cite

**Cite this as:** Going Stellar (2026). *JQL doc examples that fail after the work item rename*. GOING STELLAR S.R.L.. https://goingstellar.ro/methods/jql-examples-that-fail-after-work-item-space-rename/

```bibtex
@misc{goingstellar2026jql,
  title  = {JQL doc examples that fail after the work item rename},
  author = {{Going Stellar}},
  year   = {2026},
  url    = {https://goingstellar.ro/methods/jql-examples-that-fail-after-work-item-space-rename/},
  note   = {2026-11-29}
}
```

Licence. Free to quote with attribution.

## Also available

- This page as HTML: https://goingstellar.ro/methods/jql-examples-that-fail-after-work-item-space-rename/
- Same article in Romanian: https://goingstellar.ro/ro/metode/exemple-jql-care-pica-dupa-redenumirea-work-item-space/
