Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Integrating the Issue Manager in your scripts is as follows:

Code Block
languagejava
import com.atlassian.jira.event.type.EventDispatchOption;
import com.atlassian.jira.component.ComponentAccessor;

...

// Update the issue with the checklist
def issueManager = ComponentAccessor.getIssueManager();
issue.setCustomFieldValue(checklistCustomField, existingChecklistValue.toList());
issueManager.updateIssue(event.user, issue, EventDispatchOption.ISSUE_UPDATED, false);

...