On Jira Cloud, a REST update of an Assets custom field can return 204 No Content and leave the field empty. That happens when the value carries workspaceId and objectId, objectId alone, or the object key. Only a value that carries {"id": "<workspaceId>:<objectId>"} writes.
We learned it on 10 November 2026. We were halfway through pointing the Assets values on 1,206 work items (Jira's new name for issues) at objects in a new schema, on a live service space that could not stop. Our script read each work item back after writing it, and that read-back flagged 80 with an empty field. A backup taken before the first write put them right a few minutes later.
Some terms first. A service space's requests are work items too. Assets is the object database inside Jira Service Management, and an Assets object field is a custom field that points a work item at one of those objects. A client had asked for one Assets schema and one field per kind of data across three spaces, while one of them kept taking requests. It took one day. The live space never stopped, and the final count was 4,856 field values checked on 1,214 work items, 0 wrong.
I don't think a 204 that deletes your data is a fair trade for a missing key in the payload. Atlassian's own payload article does warn that "a malformed but accepted payload can return success while silently failing to link the object". It doesn't say the field you had is gone afterwards. We reproduced that on our own test site on 27 November.
Seven findings, from a silent 204 to a stale index
- We sent six payloads to one Assets field. Three answered 204 and emptied it, two wrote, and one failed loudly with a 400.
- Switching a field's context (its per-space configuration) to the new schema kept the stored values in our sandbox test.
- Statuses with
jira.issue.editable=falserefuse edits, and the refusal can read like a screen problem. - Four automation rules react to changes on these fields, so a bulk rewrite would have set them off on live requests.
- Archived work items don't show up in JQL, and
key = Xfinds nothing either. We found 25 by fetching them one key at a time. - Eight parallel writers cut the run from about 30 minutes to under 10, and gave us 36 false alarms.
- A check that says "nothing uses this schema" means little until the same check finds something on a schema that is in use.
Update Assets custom fields via REST API: the payload that writes and the three that return 204
Our field is an Assets object field. Jira's edit metadata for the work item (GET /rest/api/3/issue/{key}/editmeta) lists its items as cmdb-object-field and allows one operation on it, set. You update it with a normal PUT /rest/api/3/issue/{issueIdOrKey}. You get the field id from GET /rest/api/3/field and the workspace id from GET /rest/servicedeskapi/assets/workspace. The object id comes from an AQL search (AQL is Assets Query Language, the search language inside Assets) in the Assets API.
On 27 November we created a work item on our test site with the field set to object 411, then sent one update per payload and read the field back after each. Six updates, six rows:
| Payload in the field array | HTTP | Field after the read-back |
|---|---|---|
{"id": "<workspaceId>:411"} |
204 | object 411 |
{"workspaceId": "<workspaceId>", "id": "<workspaceId>:411", "objectId": "411"} |
204 | object 411 |
{"workspaceId": "<workspaceId>", "objectId": "411"} |
204 | empty |
{"objectId": "411"} |
204 | empty |
{"key": "CRT-411"} |
204 | empty |
{"id": "411"} |
400 ID 411 did not have the expected format
|
unchanged |
A working body looks like this:
{
"fields": {
"customfield_11149": [
{ "id": "<workspaceId>:411" }
]
}
}
Atlassian's payload article sends all three keys together, which is the second row, and it writes. The obvious shortcut is the dangerous one. A GET gives you workspaceId and objectId as separate keys, so a script that builds the value from those two and leaves out id looks right and gets a 204 for each call.
Of the wrong payloads, only the bare {"id": "411"} fails loudly. The other three get a 204. So does the right one. Atlassian's article adds two details. Several objects go in one array: repeated single-object calls overwrite the field each time instead of adding to it. And it recommends a GET after the update.
We read back each work item after its write, and it saved us. On 10 November the first run used the two-key payload. The read-back flagged 80 work items with empty values. They stayed empty for a few minutes, until a second run used the backup we had taken before the first edit to look up each work item's value and wrote it again with the right payload.
People hit the same silence through automation. On this Community thread a user wrote: "The automation audit log shows the Edit issue step succeeding ... BUT, when I look at the Jira issue (PO-25), the \"Related Purchase Order\" field is still empty!" We only tested Cloud, so test Data Center separately before you trust this table there.
Migrate Assets to a new object schema: switch the field context, then remap
The setup: three spaces, A, B and C, had each grown their own Assets schema and their own pairs of fields. Space A was live, B was about to go live, and C was later. The client wanted one combined schema of about 26,800 objects and six single fields, each with one context per space, filtered by a "Space" attribute on the objects.
You can't move objects. Atlassian's own suggestion ticket, JSDCLOUD-19033, says there is "no native way to \"move\" objects or object types from one schema to another", and that an export and re-import "results in new Object Keys/IDs", which "breaks existing references in Jira issues or automation rules". You can't point one field at three schemas either: JSDCLOUD-16511 says a field's configuration can't span more than one schema. So the plan was one new schema, the field contexts switched to it, and a remap: each stored value on the live space rewritten to point at its object in the new schema.
Two ways we misread the ask
The first was a spreadsheet. The client's master-data workbook had an Excel filter on, showing one space's 2,140 rows. 22,914 more rows were hidden, and we loaded the visible part. Nobody had decided to leave those rows out; the filter was simply on when the file was saved. I now read hidden rows on purpose, and I read the client's words before the file.
The second was the fields. Our sandbox had separate "(Combined)" copies of each field, so that's what we built. What the client wanted was the same fields, with one context per space.
The context switch keeps stored values (in our test)
Space A had 1,206 work items holding values from the old schema. I was worried that switching the field context to the new schema would wipe them. On the sandbox we switched a context, made an unrelated edit to a work item, and switched back. The value survived all three.
Atlassian doesn't document what happens. The field configuration page tells you to "select the schema linked to this objects field" and says nothing about what is already stored. So I treat our result as one test on one sandbox, and I'd repeat it on yours. The switch is also a click job: JSDCLOUD-19665 says there is no supported public API to configure Assets field contexts.
After the switch, the old values still point at objects in the old schema, which you're about to delete. The remap fixes those values.
jira.issue.editable false blocks REST edits, and automation fires on the field
Six statuses in the live workflow had jira.issue.editable=false. That property turns off editing for work items in the status. It usually sits on a final status. Atlassian's automation article says plainly: "When jira.issue.editable is false, the Automation flow cannot bypass the restriction." The REST API has overrideEditableFlag, but the reference limits it to Connect and Forge apps. A script running on a user's API token, like ours, needs the property removed in the workflow: open the status, delete the property, publish the draft (steps).
Don't expect the refusal to name the lock. On a 2017 Community thread a user got "cannot be set. It is not on the appropriate screen, or unknown" on a closed work item, and the answer pointed at this property, and our archived test item below got the same text. On 10 November the fields were also only on the create screen, so we added them to the edit screens as well, and I noted the screen as part of the cause. That note was weak. Since October 2025 the edit API no longer needs a field to be on a screen, and on 28 November we set a field that isn't on our work item's edit screen and got a 204 and the value. We never tested the screen and the lock apart. Going by Atlassian's docs, the lock alone refuses an edit and the screen doesn't, so the screen change was probably not needed.
Four live rules fire on changes to these fields. Depending on the rule, they would put sub-tasks back to their first status, move the work item to another status, or overwrite a preparer field. REST edits fire them like any other edit: Jira notifies updates through the "same mechanism regardless of the way it was triggered", as an answer on this Community thread puts it. A remap of 1,206 work items would have set them off on live requests.
So the remap ran in an 18-minute window:
- Remove the editable property on the six statuses. We also added the fields to the edit screens, which, as above, was probably not needed.
- Disable the rules that watch these fields.
- Remap each stored value to its new object and read the work item back.
- Put the property, the screens and the rules back as they were.
- Read everything back again.
Atlassian's page on turning rules off says a disabled rule "will not run". It doesn't say whether it catches up on what happened while it was off.
Verify in a separate pass: 36 false alarms at 8 workers
One writer working through the list would have taken about 30 minutes. With 8 parallel workers the run finished in under 10. It also reported 36 work items as "read-back empty" that were fine when we looked again. None was real. All 36 had been read straight after their own write, under load.
I can't point you to an Atlassian page that says a single-item GET lags a write. Their search and reconcile page says search has no read-after-write consistency by default, with a delay "from a few seconds to minutes", but that's about search. We saw it on the item fetch, and that part is our own observation. Whatever the cause, I now write in one pass and verify in a second pass after the writers stop.
Before you raise the worker count, read the rate limiting page. It caps writes to one work item at 20 per 2 seconds and 100 per 30 seconds, and warns that parallel calls used to get around limits bring more 429 responses.
Jira search cannot find archived issues, not even by key
Our remap list came from JQL. JQL doesn't return archived work items, so the first list was short by 20 work items in one space and 5 in another. They still held old-schema values. A sweep that fetched work items one key at a time found them.
We reproduced the split on our test site on 27 November. We archived one work item, then asked JQL for key = JT-117 and got 0 results. A direct GET of the same key returned 200 with the Assets value still in it. An edit returned 400 with "Field 'summary' cannot be set. It is not on the appropriate screen, or unknown."
Archived work items "can no longer be edited", so each one went through unarchive, remap and re-archive. The archive and unarchive REST endpoints take ids or keys, up to 1,000 per request, and archiving needs Premium or Enterprise. One of my notes from the day says unarchive "takes keys, not ids". On 27 and 28 November both worked on an archived work item, and both returned 400 No valid issue to archive or unarchive on one that wasn't archived. That 400 means none of the work items in the request could be changed, and I had misread it.
A batch archive of 18 also came back 400 that day, and one at a time worked. We don't know why. Size isn't it, since the limit is 1,000. The REST reference lists sub-tasks among the reasons (they can only be archived through their parent), but we never checked the 18 against that.
Before you delete the old schema: AQL connected tickets can be stale
Last came the delete. Deleting "will permanently delete the object schema - along with all object types that are children of this schema", and the page doesn't ask you to export first. We wanted proof first.
Each Jira check came back clean: no field context pointed at it, no automation rule named it, and a JQL aqlFunction() search across all 102 Assets fields on the site found no work item holding one of its objects. A 0 from a broken query looks the same as a real 0, so we ran the same JQL against the new schema as a positive control. It found 1,233 work items, so the query worked and the old schema's 0 was believable.
Then AQL disagreed. Its connectedTickets() function still listed 2 old objects as linked to work items. The per-object list of connected work items said 0 for both, and the same list showed 48 on a control object we knew was in use. Our reading is that the AQL index was stale. Atlassian has fixed a wrong-result bug in connectedTickets before (JSDCLOUD-16651), but I found nothing about the index going stale in Cloud, so that part is a guess. We deleted the schema with our own JSON copy of its objects kept aside. The built-in export only gives CSV, one object type at a time.
If you run the same check, use aqlFunctionWithoutFilterScope() for the negative. The JQL functions page says the plain aqlFunction() follows the field's filter scope, so it can miss values outside that scope. My notes don't say which one we used on 10 November.
What I'd do differently, and what I'd keep
I'd test the payload on one sandbox work item before writing a line of the remap, using the table above. I'd test the lock and the screen apart. And I'd start from a sweep by key, not from JQL, whenever archiving is switched on.
I'd keep the read-back after each write, the backup before the first write, the separate verification pass, and the positive control on every "nothing uses this" query. The read-back found the 80, and the backup is what let us write them again. If you're merging schemas, check the object limit first, because the old and new schemas both count until the old one is deleted. Our Assets attachment walkthrough covers another Assets REST call that needs an exact payload.
Have you had a Jira API call that returned success and wrote nothing, or worse, wrote an empty value? Which endpoint was it, and how did you catch it? Tell me in the comments or on LinkedIn, and if enough of you answer I'll put the list in a follow-up.
Originally published on leanzero.net. More Atlassian, Forge and local-AI write-ups at leanzero.net/blog, and if you're planning a migration or a Forge app, that's what we do: leanzero.net/services.



Top comments (0)