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

Behaviour script still executes for a field that is not on the issue screen

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Low
    • Resolution: Fixed
    • 6.40.0
    • 6.43.0
    • Behaviours
    • SR4J Sprint 113, SR4J Sprint 114, SR4J Sprint 115
    • 2.1

    Description

      Summary

      The server-side behaviour script of a field that’s not present on the issue operation screen is still being executed.

      Steps to Reproduce the Problem

      1. Remove the Description field from the test project's Create Issue Screen
      2. Create a Server-Side Behaviour for the Description field and add the following script:
        getFieldById("summary").setFormValue("Description field is not on this screen.")
        
      3. Click on the Create button on the top navigation bar to bring up the Create Issue dialogue.  Note that there is no value in the Summary field.
      4. Now, create an Initialiser and add the script below:
        getFieldById("description").setFormValue("Initialiser script")
        
      5. Click on the Create button to bring up the Create Issue dialogue.  Note the value in the Summary field.

      Expected Behaviour

      The Summary field's form value set in the Description field's Server-Side script should not be triggered unless the Description field is present on the screen.

      Actual Behaviour

      The Summary field's form value set in the Description field's Server-Side Behaviour is populated although the Description field is not on the screen.

      Additional Info

      Attachments

        Issue Links

          Activity

            People

              wsignoretti Wagner Signoretti
              wkoh Winnie Koh
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: