Skip to content

Bug: When activating or deactivating a newly created label for an issue, it counts every selection #7858

Closed

Description

@orpheus-ui

Hey Guys,

I’ve noticed a bug related to issue labels. When a user creates a new issue and adds a new label within it, toggling the issue's active/inactive state increases the label count each time it's selected. This results in an incorrect issue count for the label.

Steps to Reproduce:

  • Create a new issue.
  • Add a new label and assign it to the issue.
  • Toggle the issue’s active/inactive state multiple times.
  • Notice that the label count increases with each toggle, even though the label is only applied to the issue once.

Regards,

Activity

  1. huly-github-staging commented on Jan 31, 2025

    @huly-github-staging

    Connected to Huly®: UBERF-9335

  2. orpheus-ui commented on Jan 31, 2025

    @orpheus-ui
    Author

    Update:
    Creating a new label isn’t necessary to reproduce this bug. Existing label also exhibit the same behavior.
    simply toggling the label's active/inactive state multiple times causes the label count to keep increasing!

  3. MichaelUray commented on Oct 18, 2026

    @MichaelUray
    Contributor

    This came from the create-issue dialog: removing a label there didn't actually remove it from the draft, so toggling it on and off left several copies. When the issue was saved, each copy became its own label reference and was counted. This was fixed in #8373 (7acef2e), which now removes labels by their tag id in the create-issue, sub-issue draft and template editors, and editing labels on an existing issue already skipped duplicates. This looks resolved, so the issue could be closed.

  4. MichaelUray commented on Oct 20, 2026

    @MichaelUray
    Contributor

    @orpheus-ui — based on the check described above, this looks resolved in the current code. Could you please close this issue if you agree? If you think it is not fixed yet, please describe what still goes wrong (steps, expected vs. actual behaviour), so it can be looked at again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions