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

Setting multi line string in Description field using behaviour is not reset if the project is changed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: 6.25.0
    • Fix Version/s: 6.26.0
    • Component/s: None
    • Labels:
      None
    • Critical Points:
      0

      Description

      Setting multi line string in Description field using behaviour is not reset if the project is changed

      Steps to Reproduce

      1. Create a new behaviour and add to any project.

      2. Add the Initialiser code below to the behaviour:

      def field = getFieldByName("Description")
      field.setFormValue("""\
          abc""")
      

      3. Create a new ticket and select the project configured for the behaviour. As expected the default description template is displayed. 

      4. Now in that same create screen change the project selected to one that is not mapped to the behaviour

      Current Behaviour

      When the project is changed, the Description field template that was displayed for the previous project in which the behaviour was configured is still displayed.

      Expected Behaviour

      The Description field should only show the default template for projects that have it configured in the behaviour, else the Description field should be empty.

      Additional Information

      Also reproducible if you use StringBuilder to append multiline string using "\n" 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jechlin Jamie Echlin
              Reporter:
              lzhanhong Lim Zhan Hong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: