I create a issue on GitLab like this(Python 3):
user_id = int(11)
gl_issue = requests.post(
GITLAB_URL + '/api/v4/projects/%s/issues' % GITLAB_PROJECT_ID,
headers={'PRIVATE-TOKEN': GITLAB_TOKEN,'SUDO': GITLAB_USER_NAMES.get(reporter, reporter)},
verify=VERIFY_SSL_CERTIFICATE,
data={
'title': issue['fields']['summary'],
'description': issue['fields']['description'],
'created_at': issue['fields']['created'],
'assignee_ids' : [user_id],
})
Issue created but the assignee is not set. What am I doing wrong?