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.
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"I noticed I was in the wrong spot.
\nhttps://python-gitlab.readthedocs.io/en/stable/gl_objects/epics.html#epics-issues
\nfrom gitlab import Gitlab\n\ngl = Gitlab(\n url=\"<url>\",\n private_token=\"<token>\"\n)\n\ngroup = gl.groups.get(group_id)\nepic = group.epics.get(epic_id)\n\nfor issue in epic.issues.list(get_all=True):\n issue.delete()works flawless!
","upvoteCount":1,"url":"https://github.com/python-gitlab/python-gitlab/discussions/3186#discussioncomment-13025310"}}}-
|
Hi, I was active on the gitlab-forum where someone asked how to unlink an epic from an issue.
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!