Dear community,
I am trying to bulk move issue between projects via GitLab’s API. According the documentation, this action requires a simple POST request. Unfortunately, I keep running into 404s. Below, I am posting my Python script which takes advantage of the requests module. Any hints are much appreciated.
import requests
gitlab_url = "https://gitlab-example.com"
headers = {"PRIVATE_TOKEN": "fooBar"}
r = [requests.post(
gitlab_url + f"/projects/155/issues/{k}/move",
headers = headers,
data = {"to_project_id": 158},
verify = False)
for k in range(56, 82)]