The REST API endpoints to get boards always return "simple" as the board type for Team Managed projects

XMLWordPrintable

    • 3
    • 2

      Summary

      The REST API endpoints Get board ( /rest/agile/1.0/board/{boardId} ) and Get all boards ( /rest/agile/1.0/board/ ) are always returning "simple" as the board type instead of "scrum" or "kanban" for Team Managed (former Next-gen) projects.

      This is because, unlike like in Company managed (former Classic) projects, in Team Managed project you can actually change the kind of board you are using "on the fly", by enabling/disabling the different board features from: Configure board -> Features. Specifically:

      • No sprints and no backlog -> Kanban
      • No sprints but have backlog enabled -> Kanplan
      • Have Sprints and backlog enabled -> Scrum

      Steps to Reproduce

      1. Call the Get all boards (/rest/agile/1.0/board/)
      2. See that for Company managed projects the board type is either "scrum" or "kanban" like in below example:
            {
              "id": 6,
              "self": "https://XXXXX.atlassian.net/rest/agile/1.0/board/6",
              "name": "TBI board",
              "type": "kanban",...
        ....
        
      1. Now check the board type for a Team Managed project

      Expected Results

      The board type is returner as in Company managed projects

      Actual Results

      The board type is always "simple", as in below example

          {
            "id": 5,
            "self": "https://XXXXX.atlassian.net/rest/agile/1.0/board/5",
            "name": "TSMN board",
            "type": "simple", ...
      ....
      

      Workaround

      You can call the REST API endpoint to Get features for board (GET /rest/agile/1.0/board/{boardId}/features) and check whether "Sprints" and "Backlog" are enabled.  As already mentioned:

      • No sprints and no backlog -> Kanban
      • Sprints disabled and backlog enabled -> Kanplan
      • Sprints and backlog enabled -> Scrum

            Assignee:
            Unassigned
            Reporter:
            Angélica Luz
            Votes:
            16 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: