Description
Built-in Escalation service Job sends notification issue updated even though set parameter to DO_NOT_DISPATCH and sendMail false.
Steps to Reproduce
Provide a detailed step-by-step process to reproduce the problem.
- Create an Escalation service Job to update the field value.
- Configure the Job as follow and let the Action field empty:
- Add additional actions to update the issue and set the parameter to DO_NOT_DISPATCH and sendMail = false. Example:
import com.atlassian.jira.event.type.EventDispatchOption import java.sql.Timestamp import com.atlassian.jira.issue.Issue import com.atlassian.jira.component.ComponentAccessor def cfNextControlDate = ComponentAccessor.customFieldManager.getCustomFieldObject(12900) def pattern = "yyyy-MM-dd" def nextControlDate = (new Date()).toTimestamp() issue.setCustomFieldValue(cfNextControlDate,nextControlDate) ComponentAccessor.issueManager.updateIssue(currentUser,issue,EventDispatchOption.DO_NOT_DISPATCH, false)
Expected Behaviour
Issue is updated, and an email notification is not sent.
Actual Behaviour
Issue is updated, and an email notification is sent.
Additional Info
- It can only replicate when theĀ Action field is empty.