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

Behaviour set in an initialiser fails after a server side validation failure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.4.7
    • Fix Version/s: 5.4.42
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Sprint 40, Sprint 41, Sprint 42, Sprint 43
    • Critical Points:
      1

      Description

      Create an initialiser behaviour like the following

      import com.onresolve.jira.groovy.user.FieldBehaviours
      import static com.atlassian.jira.issue.IssueFieldConstants.*
      import groovy.transform.BaseScript
      
      @BaseScript FieldBehaviours fieldBehaviours
      
      getFieldByName("TextFieldA").setFormValue("Hello world").setReadOnly(true)
      

      Now try to submit the issue without a summary.

      A server side validation failure is happening - cannot create an issue without a summary . You would expect the behaviour from the initialiser to be re applied to the field, but it doesn't.

      Behaviour works as expected if it is applied directly to the field.

        Attachments

          Activity

            People

            Assignee:
            ahasan Ashraful Hasan [X] (Inactive)
            Reporter:
            tbatagiannis Thanos Batagiannis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: