Repository navigation
Description
- I have searched the existing issues
Current behavior
When a project has an OPTION (single or multi-select) custom property attached to a
work item type, plane push fails for every work item that carries a value for it.
What I expect is that option names are resolved to option IDs (the same name-based
matching compose already does for labels and assignees) and the values sync.
Error 1 — names sent to the API
Using option names in work/workitems.yaml:
properties:
Flag: [alpha]plane push fails with:
ERROR API error 400: value: Invalid UUID format: alpha
Error 2 — UUIDs rejected by the validator
Using the option's UUID instead of its name:
properties:
Flag: [<option-uuid>]plane push now aborts at its own validation gate:
Unknown option(s) for property 'Flag': <option-uuid>
Net result: neither option names nor option UUIDs can be pushed — OPTION property
values are unsynceable.
Related: replace_existing deletes undeclared property values
On item update, _set_work_item_properties(..., replace_existing=True) deletes
property values not present in the YAML. For a property whose value was never set,
the DELETE returns 404 Property value not set for this work item; only
NotFoundError is caught in _delete_property_value, but the SDK surfaces this as a
generic APIError, so the exception escapes and the whole item update fails:
ERROR API error 404: Property value not set for this work item
This also means any item whose type has a custom property attached fails to push
even when no properties are declared in the YAML at all.
Steps to reproduce
-
Define a work item type with an OPTION property (
is_multi: true, options
alpha,beta) inschema/types.yamland push the schema:plane push
-
In
work/workitems.yaml, set the property value on an item using option names:properties: Flag: [alpha]
-
Validate:
plane validate
passes (option names match the local schema).
-
Push:
plane push
fails with the 400 error above.
-
Workaround attempt — use the option's UUID instead of its name:
properties: Flag: [<option-uuid>]
-
Push again:
plane push
now aborts at its own validation gate instead (error 2 above).
Root cause
In backend/plane.py, _set_option_property decides whether to resolve option
names to IDs with:
if "option" in prop_info["property_type"]:but the Plane API returns the property type as OPTION (uppercase), so this branch
is never taken and raw values are sent to the API, which requires option UUIDs.
The validator, meanwhile, compares values against the option names declared in
the local schema, so the two stages can never agree.
Environment
- Variant: Cloud
- Version: plane-compose 0.5.2
- Python 3.14
- Browser: Not applicable (CLI tool)
Expected behaviour
- Option names should be resolved to option IDs before the API call (the same
name-based matching compose already does for labels and assignees). replace_existingcleanup should tolerate missing property values (the 404 path
is already handled for the "value already deleted" case — it just isn't
classified asNotFoundError).
Activity
[-]plane push cannot sync OPTION custom property values (0.5.2)[/-][+][bug]: plane push cannot sync OPTION custom property values[/+]