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

Custom fields changed by automation rule are reverting to default value on issue creation through email with participants

    XMLWordPrintable

Details

    Description

      Summary

      Custom fields that are updated through an automation rule on Service Desk by the issue created trigger are having their values reverted to the default value set for the custom field when a request is created through email with participants on Cc, this only happens when ScriptRunner add-on is installed and active on the Cloud site.

      Environment

      JIRA Service Desk Application 3.3.0-OD-1000.2313.0
      Adaptavist ScriptRunner for JIRA Cloud 1.1.17-AC

      Steps to reproduce

      1. Have ScriptRunner add-on installed and active (No need to start the trial)
      2. Create a custom field and set a default value for it
      3. Associate with a Jira Service Desk project screen
      4. Set an automation to trigger on issue creation to change the value of the custom field to any other than the default
      5. Send an email to the Service Desk with other customer(s) on Cc to be added as a request participant
      Expected behaviour

      Issue is created with the request participant(s), updated by the automation to change the custom field value.

      Actual result

      Issue is created with the request participant(s), updated by the automation to change the custom field value, but in the same action that the participants are added, the custom field value returns to the default value.

      Workaround

      Add an additional trigger to the automation for Participant added to issue, this will make the rule run again and maintain the desired value.

      This workaround will not cause any side effects, it will simply make sure your automation rule run again when request participants are added.

      Notes

      • The same behaviour will happen with all custom fields changed by an automation on similar configuration.
      • The behaviour will happen even if the default value is None
      • The issue is not present if ScriptRunner is disabled.
      • This issue has also been reproduced in the same conditions as above when adding request participants directly through the portal after ticket is created.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rbecker Rodrigo B.
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated: