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

Behaviour "secure/CreateIssueDetails.jspa" screen error, stops behaviour(s) from loading

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Triage
    • Low
    • Resolution: Unresolved
    • 6.31.0, 6.55.1, 6.58.0
    • None
    • Behaviours
    • None
    • 3

    Description

      Behaviour failed to load after the field required error prompt when submitting a form in "secure/CreateIssueDetails.jspa"

      Steps to Reproduce

      1. Create a new behaviour mapped to a project
      2. Configure a server-side script on a single select list:
        import static com.atlassian.jira.issue.IssueFieldConstants.*
        
        def selectList = getFieldById(fieldChanged)
        def selectListValue = selectList.value
            
        def priority = getFieldById(PRIORITY)
        def summary = getFieldById(SUMMARY)
        
        log.warn"selectListValue : ${selectListValue} "
        
        if(selectListValue == "A"){
            priority.setFormValue("High")
            priority.setReadOnly(true)
            summary.setFormValue("This is an important creation ticket")
        } else {
            priority.setFormValue("Low")
            priority.setReadOnly(true)
            summary.setFormValue("This is an important creation ticket")
        }
        
      3. Open create screen in a new tab or "secure/CreateIssueDetails.jspa"
      4. Have at least one mandatory field
      5. Click "Create" without completing one of the mandatory fields

       

      Steps to Reproduce 2

      There are other ways to reproduce a similar bug:

      1. Create a behaviour mapped to a project
      2. Configure a server-side script on a single select list:
        getFieldByName("Select list").setFormValue('A')
        
      3. Set the field as Readonly.
      4. Open create screen in a new tab or "secure/CreateIssueDetails.jspa"
      5. Have at least one mandatory field or do not fill up Summary field.
      6. Click "Create" button twice.
      7. Result: The select list field will be set to Readonly, but the setFormValue does not run.

      Recording of Behaviour: SRJIRA-5686_Step_to_Reproduced_2.mp4

      Expected Behaviour

      Behaviours able to run again after the error is thrown

      Actual Behaviour

      Behaviours failed to run again after the error is thrown

      Additional Info

      A short video on the step to reproduce

      Attachments

        Activity

          People

            Unassigned Unassigned
            amustapha Amir Mustapha
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: