Skip to content

Unlink epic from an issue #3186

Closed Answered by botkero
botkero asked this question in Q&A
Discussion options

You must be logged in to vote

I noticed I was in the wrong spot.

https://python-gitlab.readthedocs.io/en/stable/gl_objects/epics.html#epics-issues

from gitlab import Gitlab

gl = Gitlab(
    url="<url>",
    private_token="<token>"
)

group = gl.groups.get(group_id)
epic = group.epics.get(epic_id)

for issue in epic.issues.list(get_all=True):
    issue.delete()

works flawless!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by botkero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant