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

Behaviour Except/When Condition does not apply

    XMLWordPrintableJSON

Details

    • Bug
    • Status: To Do
    • Medium
    • Resolution: Unresolved
    • 7.12.0, 7.13.0
    • None
    • None
    • 2.1

    Description

      The Behaviour's Except/When Condition does not apply correctly

      e.g: Adding a Field with Read Only = true, and adding the Condition: Except - Workflow Step: In Progress

      Steps to reproduce

      1. Add a field to all Transition Screens (e.g. Description)
      2. Create Behaviour, adding the field
      3. Select Read Only
      4. Add a Condition: Except - Workflow Step: In Progress

      Expected Behaviour

      Read Only is applied to the Description field on all Issue Screens, other than when on the In Progress Transition Screen.

      Actual Behaviour

      Read Only is applied to the Description field on all Issue Screens

      Workaround

      Hard code the Behaviour desired.

      E.g. for this specific example

      def field = getFieldByName('Description')
      field.setReadOnly(true)
      
      if (actionName == 'In progress'){
          field.setReadOnly(false)
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            ovfsiebenburgen Olly von Fay-Siebenburgen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: