Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-5159

Comment added automation rule works unexpectedly

    XMLWordPrintable

Details

    Description

      Summary

      When adding a public comment during a transition, Service Desk sees that the status changed first and only then the comment is added. This causing Service Desk to perform the automation while the issue in a wrong status.

      Steps to Replicate

      1. Create a new Basic Service Desk Project.
      2. Create a new workflow and it should contain the below transition:
      3. Add a screen to the Waiting for Approval to Waiting for Support transition
      4. Add a new issue commented automation rule to the Service Desk:
        • * WHEN *Comment is added to an issue*
          * IF *Issue matches: Status = "Waiting for support" / "Customer Request Type" is not empty / Comment is public / User is not a customer*
          ** THEN *Transition issue: Respond to customer*
          * IF ELSE *Issue matches: Status = "Waiting for customer" / "Customer Request Type" is not empty / Comment is public / User is a customer*
          ** THEN *Transition issue: Respond to support*
      5. Login as Service Desk customer and use this customer to create a new issue through Customer Portal
      6. Login as agent and transition the new issue from Waiting for Approval to Waiting for Support and the screen to add a comment will pop out
      7. Add a public comment
      8. The status changes to Waiting for Customer instead of Waiting for Support

      Expected Behavior

      Service Desk should add the comment first and then transition the issue to the destination status

      Current behavior

      Service Desk transition to the destination status and then add the comment into the ticket

      Workaround

      Add the Comment is primary action if condition to your automation rule so that it would look like

      * WHEN *Comment is added to an issue*
      * IF *Issue matches: Status = "Waiting for support" / "Customer Request Type" is not empty / Comment is public / User is not a customer*
      * AND *Comment is primary action
      ** THEN *Transition issue: Respond to customer*
      * IF ELSE *Issue matches: Status = "Waiting for customer" / "Customer Request Type" is not empty / Comment is public / User is a customer*
      * AND *Comment is primary action
      ** THEN *Transition issue: Respond to support*

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nhassan Nur Asnida Hassan (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: