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

nextSprint JQL function only returns sprint if it is owned by the board provided as argument

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.3.7
    • Fix Version/s: 5.4.0
    • Component/s: JQL Functions
    • Labels:
      None
    • Sprint:
      Sprint 37 - Ends Jan 29
    • Critical Points:
      2

      Description

      To reproduce:

      • Create an agile board ('Board 1') with an active sprint.
      • Create another sprint ('Sprint A') in that board so that it will become 'the next sprint'.
      • Create another board ('Board 2') with an active sprint, which also has Sprint A as its next sprint.
      • Perform the following two JQL queries:
        1. issueFunction in nextSprint('Board 1')
        2. issueFunction in nextSprint('Board 2')

      Expected behaviour: The results for both queries are the issues in Sprint A.

      Actual behaviour: Only query 1 returns the issues in Sprint A; query 2 returns no issues.

      This is because our implementation of nextSprint uses SprintManager.getSprintsForView, which only considers sprints which are 'owned' by the view in question, rather than all those which actually appear on the view.

        Attachments

          Activity

            People

            Assignee:
            ahasan Ashraful Hasan [X] (Inactive)
            Reporter:
            jchoules Joanna Choules
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: