Skip to content

[COMMS-1071] Create labels from the bulk edit and move forms - #26272

Closed
akabiru wants to merge 3 commits into
implementation/comms-1071-create-labels-on-work-package-savefrom
implementation/comms-1071-create-labels-in-bulk-and-move-forms
Closed

akabiru wants to merge 3 commits into
implementation/comms-1071-create-labels-on-work-package-savefrom
implementation/comms-1071-create-labels-in-bulk-and-move-forms

Conversation

@akabiru

@akabiru akabiru commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

https://community.openproject.org/wp/81938

Stacked on #26270.

The bulk edit and move/copy forms offered labels through a plain multi-select, so a label had to exist before it could be applied in bulk. Both forms now use the autocompleter with the same create gate as the API: a typed name travels as label_names[] next to the selected ids and is created when the work packages are saved. Blank still means no change and "none" still clears, with "none" winning over typed names. To carry typed names the generic autocompleter gains a second hidden input name for items that have no id, instead of emitting them as empty ids.

A form can name a second hidden input for items the user typed in, so
a new label travels as a name instead of an empty id.
Names without ids replace the labels, and a "none" selection wins.
Both forms use the autocompleter with the same create gate as the API,
so a typed label is created when the work packages are saved.
@akabiru
akabiru added this pull request to stack #26273 October 23, 2026 11:44
@akabiru akabiru changed the title implementation/comms 1071 create labels in bulk and move forms [COMMS-1071] Create labels from the bulk edit and move forms Oct 23, 2026
@akabiru akabiru self-assigned this Oct 23, 2026
@akabiru

akabiru commented Oct 23, 2026

Copy link
Copy Markdown
Member Author

Parked: keeping the plain multi-selects in the bulk edit and move forms; label creation stays in the work package form (#26270).

@akabiru akabiru closed this Oct 23, 2026
@akabiru
akabiru removed this pull request from stack #26273 October 23, 2026 11:47
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 23, 2026
@akabiru
akabiru deleted the implementation/comms-1071-create-labels-in-bulk-and-move-forms branch October 23, 2026 11:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant