private void applyChanges()
 {
     try {
         facade.updateIssue(issue, new List <JiraField> {
             field
         });
         JiraIssue updatedIssue = facade.getIssue(issue.Server, issue.Key);
         this.safeInvoke(new MethodInvoker(delegate {
             Close();
             model.updateIssue(updatedIssue);
         }));
     } catch (Exception e) {
         this.safeInvoke(new MethodInvoker(delegate {
             PlvsUtils.showError("Failed to apply changes", e);
             Close();
         }));
     }
 }
        private void dropAction(JiraIssue issue, bool add)
        {
            JiraField field = new JiraField("assignee", null)
            {
                Values = new List <string>()
            };

            if (add)
            {
                throw new ArgumentException("Unable to have multiple assignees in one issue");
            }

            // skip if issue already has this user
            if (field.Values.Contains(user.Id))
            {
                return;
            }

            field.Values.Add(user.Id);
            facade.updateIssue(issue, new List <JiraField> {
                field
            });
        }