Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-6562

Built-in Escalation service Job send email notification issue updated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: To Do
    • Low
    • Resolution: Unresolved
    • 7.11.0
    • None
    • None
    • 2.2

    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.

      1. Create an Escalation service Job to update the field value.
      2. Configure the Job as follow and let the Action field empty:
      3. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            arafee Aizat Mohamad Rafee
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: