Sprint update REST API is inconsistent with UI

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 10.2.0
    • Affects Version/s: 9.12.4, 9.16.1, 9.17.4, 10.1.3
    • Component/s: REST API
    • None
    • 9.12
    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create sprint with story that contains some subtasks.
      2. Set subtasks status to other then DONE and story to DONE.
      3. Try to complete sprint through UI.
        Result: Sprint cannot be completed as there are incomplete subtasks on the following issues...
      4. Try to complete sprint through API call.
      curl --request PUT \
        --url 'http://{JIRA_INSTANCE}/jira/rest/agile/1.0/sprint/{SPRINT_ID}' \
        --user 'user:password' \
        --header 'Accept: application/json' \
        --header 'Content-Type: application/json' \
        --data '{"incompleteIssuesDestinationId":null, "state":"closed", "name":"Test", "startDate":"2024-11-25T19:00:00.000-04:00", "endDate":"2024-11-28T19:00:00.000-04:00"}

      Expected Results

      Sprint is not closed due to incomplete subtasks - same behaviour as from UI.

      Actual Results

      Sprint is completed without error.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Dominik Wojtasik
            Reporter:
            Dominik Wojtasik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: