New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use UpdateIssue to remove all issue assignees #427
Comments
Thanks for the report @natemara! Did you also try to give it a |
Hi @natemara! Did you have a chance to test this, and so is this still an issue? |
Specifying |
Then I think the only way to solve this is by making this a |
The same problem applys to labels. You can't remove them by setting it to an emtpy slice, but if you use []string{""} it works. |
PR #1294 is a nasty breaking change, but it does fix this issue... |
Since
UpdateIssueOptions
definesAssigneeIDs
as a[]int
, and marks it asomitempty
, it is omitted from the JSON request if an empty array is passed into it. The Gitlab API docs describe the field as follows:Based on the current definition of
UpdateIssueOptions
, it is impossible to unassign all assignees. You cannot remove theomitempty
item, or every call toUpdateIssue
will remove all issue assignees. if you want to support this, I think there needs to be a separate method.The text was updated successfully, but these errors were encountered: