Sprint REST API doesn't update the originBoardId

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 10.3.6
    • Affects Version/s: 9.12.15, 9.12.22, 10.3.4, 10.5.0
    • Component/s: REST API
    • 9.12
    • 3
    • Severity 3 - Minor
    • 5

      Issue Summary

      Sending either PUT (Update Sprint) or POST (Partially Update Sprint) REST API request, including the originBoardId info, doesn't update the board details.

      Even though this info is in the Request Body section and should be updatable, it seems like the request is ignored and nothing changes.

      Steps to Reproduce

      1. Create two Scrum boards (A & B)
      2. Create a Sprint in board A (Sample Sprint)
      3. Imagine that the BoardID for board A is 1, and the BoardID for board B is 2. Prepare the following REST API request to update the Sprint's (Sample Sprint) originBoardID from A to B:
        Request:  <Jira_Base_URL>/rest/agile/1.0/sprint/1
        JSON payload:
        {
        "name": "Sample Sprint",
        "state": "active",
        "startDate": "2025-03-24T02:51:06.809Z",
        "endDate": "2025-04-07T03:11:06.809Z",
        "originBoardId": "2" 
        }
        

      Expected Results

      The expected response would be:

      JSON payload:
      {
          "id": 1,
          "self": "<Jira_Base_URL>/rest/agile/1.0/sprint/1",
          "state": "active",
          "name": "Sample Sprint",
          "startDate": "2025-03-24T02:51:06.809Z",
          "endDate": "2025-04-07T03:11:06.809Z",
          "activatedDate": "2021-03-24T02:51:06.809Z",
          "originBoardId": 2,
          "synced": false,
          "autoStartStop": false
      }
      

      Actual Results

      The actual response is:

      JSON payload:
      {
          "id": 1,
          "self": "<Jira_Base_URL>/rest/agile/1.0/sprint/1",
          "state": "active",
          "name": "Sample Sprint",
          "startDate": "2025-03-24T02:51:06.809Z",
          "endDate": "2025-04-07T03:11:06.809Z",
          "activatedDate": "2021-03-24T02:51:06.809Z",
          "originBoardId": 1,
          "synced": false,
          "autoStartStop": false
      }
      

      Workaround

      As a workaround, you can update the RAPID_VIEW_ID column for the Sprint in the AO_60DB71_SPRINT DB table:

      update "AO_60DB71_SPRINT" set  "RAPID_VIEW_ID" = 2 where "ID" = 1 and "RAPID_VIEW_ID" = 1;
      
      • ID is the Sprint ID, that you can get from the REST API responses shown above
      • The SQL query was written and tested on PostgreSQL, and might need to be amended if Jira is using a different type of database

            Assignee:
            Piotr Kopecki
            Reporter:
            Jose Antonio Uribe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: