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

The Transition Behaviour for the Comment field appears to be cached.

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.4.0-p5, 6.5.0-p5, 6.20.0, 6.21.0, 6.22.0, 6.23.0
    • Fix Version/s: 6.17.0
    • Component/s: Behaviours
    • Labels:
      None
    • Sprint:
      SR4J Sprint 90
    • Critical Points:
      3.1

      Description

      Steps to Reproduce

      1. Create a new Project and also add a Transition Screen for it.
      2. In the transition screen add a Radio Button with Yes and No options
      3. Set the transition screen for the In Progress status for example
      4. Create a new Behaviour and associate it with the Project
      5. In the behaviour config, add a new Server Side Behaviour for the Radio Button, and add a condition that if either one of the Radio Button options was selected, the Comment field would become mandatory for example:
        def transitionOptions = getFieldById(fieldChanged)
        def transitionOptionsValue = transitionOptions.value.toString()
        
        def commentField = getFieldById("comment")
        commentField.setRequired(false)
        commentField.setHelpText("")
        
        if(transitionOptionsValue == "Yes") {
            commentField.setRequired(true)
            commentField.setHelpText("Please Enter Some Comment")
        } 
        
      6. Below is a print screen of the Behaviour configuration:-
      7. Create a new Issue and enter some sample values.
      8. Next change the status of the issue from To Do to In Progress
      9. When the transition screen appears, select either the Yes or No option i.e. either one which will cause the Comment field to become mandatory.
      10. Next, do not add any comment, and just click the cancel button and exit the Transition Screen.
      11. Do not refresh the page, instead just select the Edit button for the issue.
      12. Next do update any value, just click on the Update button

      Current Behaviour

      Currently, if the comment field is left empty and if you try to just click on the Update button, an error message is displayed saying that the Comment field is mandatory as shown in the image below:-

      This also occurs, if you select the Assign button and do not enter any comment and just click Assign. Below is a print screen for more info:-

      Expected Behaviour

      The Behaviour condition set on the Comments field for the transition screen should only impact the Comment field in the transition Screen and not other comment fields.

      Additional Information

      Test video included test1.mp4

        Attachments

        1. assign_option.png
          assign_option.png
          32 kB
        2. behaviour_config.png
          behaviour_config.png
          240 kB
        3. edit_issue.png
          edit_issue.png
          41 kB
        4. service_desk_behaviour_config.png
          service_desk_behaviour_config.png
          194 kB
        5. service_desk_test.mp4
          2.44 MB
        6. start_progress_error.png
          start_progress_error.png
          38 kB
        7. test1.mp4
          3.20 MB

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            rkumar Ram Kumar Aravindakshan
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated: