How to add assignee to an ISSUE?
I’ve tried:
PUT https://localhost/api/v4/projects/2779/issues/20?assignee_id=240
and it execute without error but issue still don’t has assignee
ps. Is it possible to add assignee in POST of new Issue?
How to add assignee to an ISSUE?
I’ve tried:
PUT https://localhost/api/v4/projects/2779/issues/20?assignee_id=240
and it execute without error but issue still don’t has assignee
ps. Is it possible to add assignee in POST of new Issue?
Perhaps try with assignee_ids
instead of assignee_id.
https://docs.gitlab.com/ee/api/issues.html#edit-issue
Funny that whilst they list both of the parameters, in the section underneath explaining each option, only assignee_ids
is shown in the list. So your URL should look like:
curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" "https://localhost/api/v4/projects/2779/issues/20?assignee_ids=240"
if successful you should see a JSON response, if nothing came back that means it didn’t do it.
Hope that will help.
My mistake, it works. Also, I assign wrong id or ids
Tnx