Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Copy labels from globals #18

Open
jared-mackey opened this issue Dec 1, 2016 · 6 comments
Open

Copy labels from globals #18

jared-mackey opened this issue Dec 1, 2016 · 6 comments
Assignees
Milestone

Comments

@jared-mackey
Copy link

I want to define labels at the site level and just copy to each project. How can I copy labels without specifying a project?

@jared-mackey jared-mackey changed the title Copy labels from admin instead of project Copy labels from globals Dec 1, 2016
@matm
Copy link
Contributor

matm commented Jan 22, 2017

@mackeyja92 What do you mean labels at site level? Aren't labels tied to projects? I can't find a link about global label definition.

There's no way to copy all labels from a source project to all other projects at the moment. There may be a need for that feature indeed.

@Hufschmidt
Copy link

I think he means group labels which can be created by going to [some group or sub-group] > issues > label. Group labels can be used in any project in this group but not any sub-group or sub-group project.
Here is where gitlab-copy would come in handy.

@matm
Copy link
Contributor

matm commented Apr 5, 2017

Yes, indeed. I wasn't aware of those. [some group] > edit > labels allows to define labels for all projects in a group. Thanks @Hufschmidt for pointing this out. How do you think gitlab-copy could handle it? Allow copying labels from one project to a group's labels? Maybe also allow copying of labels between groups.

@Hufschmidt
Copy link

Hufschmidt commented Apr 6, 2017

Since labels of a group are currently only available in projects of that group, but not in projects in any of its sub-groups (gitlab discussion) my first use-case would be copying labels from one group to another.

Side-note: As far as I know project-labels can already be promoted to group-labels via gitlabs own gui, having this in gitlab-copy might still be usefull when trying to migrate a lot of labels from project to group though.

I have to admin though I don't know if there is an API endpoint for fetching or adding group-level labels, last time I looked I didn't find any documentation on this...

@matm matm self-assigned this Apr 16, 2017
@matm matm added this to the v0.6.8 milestone Apr 16, 2017
@matm
Copy link
Contributor

matm commented Mar 1, 2019

Hey there! Is copying labels from one group to another still a wanted feature? Just want to know if I work on this (to be included to upcoming 0.7 release). Thanks!

@matm matm modified the milestones: v0.7, v0.8 Mar 4, 2019
@matm matm modified the milestones: v0.8.0, v0.8.1, v0.9.0 Mar 4, 2023
@zaventh
Copy link

zaventh commented Apr 6, 2023

Copying labels from group to group even in a single instance would be very desirable @matm. Currently I have a crude script to do this with curl and jq.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants