Skip to content

Commit

Permalink
fix: allow the cli to remove the assignee of an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Willner committed Nov 5, 2021
1 parent dd989af commit a0a307a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ For more options see `redmine create --help`.
$ redmine update 107873 --assignee 112
```

```
$ redmine update 107873 --assignee ''
```

For more options see `redmine update --help`.

### Filter issues
Expand Down
Empty file modified redmine/cli/main.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion redmine/redmine.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def update_issue(self, issue_id, **kwargs):
}

for field in list(fields["issue"].keys()):
if not fields["issue"][field]:
if fields["issue"][field] == None:
del fields["issue"][field]

resp = requests.put(
Expand Down

0 comments on commit a0a307a

Please sign in to comment.