-
|
Hi, I was active on the gitlab-forum where someone asked how to unlink an epic from an issue. ID of the epic to add the issue to. Valid values are greater than or equal to 0. Premium and Ultimate only. What I have tried so far: issue = project.issues.get(1)
issue.epic = None
issue.epic_iid = None
issue.save()
But it doesn't change anything. So any idea? or maybe the REST-API doesn't support this? If I look inside gitlab-ui and network monitor from the browser, it uses GraphQL. |
Beta Was this translation helpful? Give feedback.
-
|
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! |
Beta Was this translation helpful? Give feedback.
I noticed I was in the wrong spot.
https://python-gitlab.readthedocs.io/en/stable/gl_objects/epics.html#epics-issues
works flawless!