Fetch and assign labels by name instead of ID
Problem to solve
When adding or removing labels from an issue via GraphQL, currently you need to know the GraphQL ID for each label. Additionally, it is not possible to look up a label's ID directly by name on a project or group. As a result, adding and removing existing labels to an issue via GraphQL requires searching for and iterating through labels on projects to find the right ID, for each label.
Proposal
This could be addressed by either making label IDs easier to resolve, and ideally, by allowing add and remove of labels on issues directly via the label title, similar to how the REST API resolves labels. The ability to resolve labels by name would be helpful in working out if labels need to be created prior to adding or removing them, and for resolving label names to IDs for the purposes of adding or removing them from an issue. Being able to add or remove labels by name would be an extra level of convenience on top of the ability to easily resolve label IDs.
Intended users
Personas are described at https://about.gitlab.com/handbook/product/personas/
- Delaney (Development Team Lead)
- Sasha (Software Developer)
- Priyanka (Platform Engineer)
- Sidney (Systems Administrator)
- Rachel (Release Manager)
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.