When using the "Approval required" notification, duplicate customer notifications will be sent to inform the customer that the status has changed

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 4.1.0, 4.3.2
    • Component/s: Automation
    • 7
    • Severity 3 - Minor
    • 1

      Issue Summary

      When using the automation rule "Approval required", duplicate customer notifications will be sent to inform the customer that the status has changed, if the status changed is caused by the automation.

      Steps to reproduce

      1. Create a new Service Desk project
      2. Create an Automation rule with:
        1. WHEN: "Approval Required"
        2. IF: issue matches "issuetype = "Service Request with Approvals""
        3. THEN: Auto-approve/Decline -> Approve
        4. See the screenshot below for reference:
      3. Create a new workflow (or edit an existing workflow "Service Request Fulfilment with Approvals workflow for Jira Service Desk") associated to the issue type "Service Request with Approvals", with the following configuration:
        1. Add a status OPEN directly connected to the Issue creation transition.
        2. Do not configure status OPEN with an Approval
        3. Add a transition from the status OPEN to the status "WAITING FOR APPROVAL".
        4. Configure the transition "WAITING FOR APPROVAL" with an Approval
        5. See the screenshot below for reference:
      4. Create a new ticket with the issue type set to "Service Request with Approvals" and make sure that the approver field is already set
      5. Notice that the status of the ticket is OPEN, which is expected
      6. Click on the transition from OPEN to "WAITING FOR APPROVAL"
      7. Notice that the issue was automatically approved, and transitioned to the status "WAITING FOR SUPPORT":
      8. Check the customer notification sent to the reporter

      Expected results

      The notification should only show 1 status change from "WAITING FOR APPROVAL" to "WAITING FOR SUPPORT"

      Actual results

      The notification shows 2 times the status change from "WAITING FOR APPROVAL" to "WAITING FOR SUPPORT".

      We can also see from the AO_4E8AE6_NOTIF_BATCH_QUEUE that 2 notifications were created about the same status change, as if 2 events had been triggered for this status change:

      • Query:
        SELECT * FROM "AO_4E8AE6_NOTIF_BATCH_QUEUE" sd
        join jiraissue ji on ji.id=sd."ISSUE_ID"
        join project pr on ji.project=pr.id
        join app_user app on app.id=sd."RECIPIENT_ID"
        where pr.pkey = 'SDTEST' and ji.issuenum = 186;
        
      • Result:

      Workaround

      No workaround known so far

        1. Step1.png
          Step1.png
          76 kB
        2. Step2.png
          Step2.png
          177 kB
        3. Step3.png
          Step3.png
          251 kB
        4. Step4.png
          Step4.png
          110 kB
        5. Step5.png
          Step5.png
          92 kB

            Assignee:
            Unassigned
            Reporter:
            Julien Rey (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: