Issue summary:

Problem / Motivation

The Webform handler creates items via `create_item` but never passes
`group_id`, so every submission lands in the board's top (default) group.
On a board with multiple groups (e.g. `New Lead`,
imported CSV groups), there is no way to route submissions to a specific
group from configuration.

Proposed resolution

Add an optional **Group ID** textfield to the handler configuration form,
sitting under **Board ID**. When set, pass it as the `group_id` variable
of the `create_item` mutation. When empty, behaviour is unchanged (Monday
drops the item into the default group).

API change

`MondayClient::createItem()` gains an optional `?string $groupId = null`
parameter, threaded into the GraphQL mutation variables.

UI change

One new textfield on the handler config form:

- **Group ID** — optional. Numeric or string ID from the board's group
(e.g. `topics`, `group_mm4kpmas`). Leave empty to use the board default.

Remaining tasks

- Add `group_id` to `defaultConfiguration()`, `buildConfigurationForm()`,
`submitConfigurationForm()`, and the schema YAML.
- Thread it through `createItem()` and the GraphQL query string.
- Update README.

Want me to tweak the tone (less prescriptive in the "Proposed resolution" so reviewers can
push back), or shorten further?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

das.gautam created an issue. See original summary.

das.gautam’s picture

Issue summary: View changes

das.gautam’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.