diff --git a/git_redmine.py b/git_redmine.py index 4590f3c..914631d 100644 --- a/git_redmine.py +++ b/git_redmine.py @@ -222,7 +222,8 @@ def take(issue_number, reference): click.echo('Moved to branch %s' % branch_name) current_user = api.user.get('current') if ((not hasattr(issue, 'assigned_to') or issue.assigned_to.id != current_user.id) - and click.confirm('Do you want to assign the issue to yourself ?', default=not hasattr(issue,ยท'assigned_to'))): + and click.confirm('Do you want to assign the issue to yourself ?', + default=not hasattr(issue, 'assigned_to') and issue.status == api.nouveau)): issue.assigned_to_id = current_user.id issue.save() if new: