Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-26152

Sprint update REST API is inconsistent with UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 10.2.0
    • 9.12.4, 9.16.1, 9.17.4, 10.1.3
    • REST API
    • None

      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

              21d451cf00e1 Dominik Wojtasik
              21d451cf00e1 Dominik Wojtasik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: