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

Behaviour Inline Edit is not disabled on the Issue Details page for Jira 8 for certain board pages

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: High
    • Resolution: Done
    • Affects Version/s: 5.6.2.1-jira8, 5.6.8.1-jira8, 6.0.0
    • Fix Version/s: 6.9.0
    • Component/s: Behaviours
    • Labels:
      None
    • Sprint:
      SR4J Sprint 84
    • Critical Points:
      5.1

      Description

      Update:

      This issue is not caused by just being on Jira 8. It is related to the board page you are looking at as well.

      In Jira 8.5.0 and scriptrunner 6.4.0-P5 if you define a behaviour on a field (field level behaviour script), the inline edit should be disabled for that field while on the issue details view.

      For a Sprint board:
      If you first navigate to the Active Sprints view and perform a hard refresh the validators endpoint is never called and behaviours are never applied to the issue details view. If you, however, load the Backlog view and hard refresh, the validators endpoint is called and behaviours are applied and the inline edit is disabled.

      Behaviours Inline edit not disabled on Active Sprints Issue Details page Jira 8.5.mp4

      For KANBAN boards:
      It seems that for default KANBAN boards that do not have 2 board views. i.e. only one place where you can view issue cards and open the details view. The behaviours validator endpoint is never called and behaviours are not applied at all. Therefore on KANBAN boards, the inline edit is never disabled.

      Behaviours Inline edit not disabled for Kan ban board issue details view.mp4

       

      The videos above show how to reproduce. Essentially it does not matter what behaviour code you have on the field as any code on a field disables inline edit. The problem with the fields not getting the inline edit disabled is specific to the board page you are viewing. It appears as though behaviours are expecting something to be on the page to trigger them to load but certain board views are missing this element and so they never get triggered.

      Step to reproduce:

      1. Add a text field to a SCRUM and KANBAN project
      2. Add a behaviour and add each field as a field inside that behaviour.
      3. Put 1 line of code in the field level script like "def test = 1234"
      4. Map the KANBAN and SCRUM project to that behaviour for all issue types
      5. Go to the standard issue view page and the inline edit will be disabled correctly in both SCRUM and KANBAN
      6. View the KANBAN board, add the 2 fields to the fields shown in the issue details view, refresh the entire page and you will be able to edit the fields inline. This should not be possible
      7. View the Active Sprints page for the SCRUM project, again add those custom fields to the Issue Details view. Hard refresh the page and the inline edit will not be disabled. Then go to the Backlog view, hard refresh the page and the behaviours will kick in and disable the inline edit correctly.
      8. If you watch the network tab you will see no calls to the validators endpoint for the pages that do not load behaviours and you will see it when the fields get disabled correctly on the SCRUM Backlog view

       


       

      Expected behaviour:
      You should not be able to inline edit a field with a behaviour configured while on the Issue Details view for SCRUM or KANBAN boards in any of the views that show the issuee details pop out screen..

       

        Attachments

          Structure

            Activity

              People

              Assignee:
              krana Kyran Rana
              Reporter:
              mclark Matthew Clark
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel