You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a GitLab issue or MR is linked to a feature flag (#7160), Flagsmith should add a "Flagsmith Flag" label to it so the team can filter for linked items in GitLab.
tagging_enabled on GitLabConfiguration as an integration-level toggle. Exposed in the frontend as a checkbox field — same pattern as Datadog's use_custom_source.
Important
In the GitHub integration, tagging_enabled controls two things: the "Flagsmith Flag" label on issues/PRs in GitHub, and feature state tags in Flagsmith (e.g. "PR Merged", "Issue Closed"). This issue covers the label side. The feature state tags are driven by webhooks and delivered in #7165. Both share the same tagging_enabled toggle.
feat(gitlab): add configuration persistence and resource browsing #7121 calls create_flagsmith_flag_label on config create/update, gated behind gitlab_project_id. That field no longer exists — the label should be created when a user links a resource, since that's when the project ID is known.
Context: #7000
When a GitLab issue or MR is linked to a feature flag (#7160), Flagsmith should add a "Flagsmith Flag" label to it so the team can filter for linked items in GitLab.
Scope
POST /api/v4/projects/:id/labels. Handle 409 (label already exists on the project).PUT /api/v4/projects/:id/issues/:iidwith{"labels": "Flagsmith Flag"}.tagging_enabledonGitLabConfigurationas an integration-level toggle. Exposed in the frontend as a checkbox field — same pattern as Datadog'suse_custom_source.Important
In the GitHub integration,
tagging_enabledcontrols two things: the "Flagsmith Flag" label on issues/PRs in GitHub, and feature state tags in Flagsmith (e.g. "PR Merged", "Issue Closed"). This issue covers the label side. The feature state tags are driven by webhooks and delivered in #7165. Both share the sametagging_enabledtoggle.Note
#7120 and #7121 contain reference code:
create_flagsmith_flag_labelon config create/update, gated behindgitlab_project_id. That field no longer exists — the label should be created when a user links a resource, since that's when the project ID is known.GitLabTagenum: MR Open, MR Merged, Issue Closed, etc.) via a lifecycle hook ontagging_enabled. This serves GitLab integration: receive webhooks for automatic state sync #7165 — do not include in this issue.Acceptance criteria