Distinguish between lables with same name in Issues API

Problem to solve

In the project I’m working on, there are labels of the same name. These labels are defined at project level, but are also inherited from groups.

When I create an issue with one of these labels via the Issues API, the label defined at project level (1) is automatically assigned. However, I would like to use a label that is defined in a group (2).

How can I send the information in the request as to which label should be used?

Steps to reproduce

  • Create group and project label with same name
  • Create issue via Issues API with this label

Configuration

Versions

Versions