---
agentTools:
  projectIndex: https://productplan.readme.io/llms.txt
---

# Get Roadmap Bars

Returns a list of all Bars for the specified Roadmap.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "ProductPlan API V2",
    "version": "v2"
  },
  "paths": {
    "/api/v2/roadmaps/{id}/bars": {
      "get": {
        "summary": "Get Roadmap Bars",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "description": "Indicates which page number to retrieve (based on a given page size)",
              "default": 1
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "schema": {
              "type": "integer",
              "description": "The amount of items to return with each page (default: 200, max: 500)",
              "default": 200
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "object",
              "description": "Filter and sort query. (Filterable attributes: `id,name,starts_on,ends_on,is_container,created_at,updated_at`). Visit our [filtering docs](/reference/filtering) for more information about how filtering works.",
              "example": {
                "name_eq": "name filter"
              },
              "default": {}
            },
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Roadmaps"
        ],
        "description": "Returns a list of all Bars for the specified Roadmap.",
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "lists roadmap bars",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BarRead"
                      },
                      "required": [
                        "items"
                      ]
                    },
                    "paging": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "results",
                    "paging"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "roadmap not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "bad pagination parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Roadmaps"
    }
  ],
  "servers": [
    {
      "url": "https://{defaultHost}",
      "variables": {
        "defaultHost": {
          "default": "app.productplan.com"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "BarRead": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The bar's unique database identifier.",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Title of the bar.",
            "example": "Sail to Monkey Island"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "In-depth explanation of what the bar represents.",
            "example": "Board the Sea Monkey and find a way to get to Monkey Island."
          },
          "roadmap": {
            "type": "object",
            "nullable": true,
            "description": "Related roadmap resource, to which the bar belongs.",
            "$ref": "#/components/schemas/RoadmapReference"
          },
          "starts_on": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Date for which work associated with the bar is to begin."
          },
          "ends_on": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Date for which work associated with the bar is to end."
          },
          "strategic_value": {
            "type": "string",
            "nullable": true,
            "description": "Why this bar is important.",
            "example": "Discover what the Secret is all about"
          },
          "notes": {
            "type": "string",
            "nullable": true,
            "description": "Additional information to be shared.",
            "example": "Make sure we bring a rubber chicken with a pulley in the middle"
          },
          "percent_done": {
            "type": "integer",
            "nullable": true,
            "minimum": 0,
            "maximum": 100,
            "description": "Determines the shading of the bar to indicate progress. Null is fully saturated. 0-100 displays a gradual shading until fully saturated.",
            "example": 20
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Keywords and terms associated with the bar.",
            "example": [
              "sail",
              "adventure"
            ]
          },
          "lane": {
            "type": "string",
            "nullable": true,
            "description": "The lane assigned to the bar."
          },
          "legend": {
            "type": "string",
            "nullable": true,
            "description": "The legend assigned to the bar."
          },
          "custom_text_fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField"
            }
          },
          "custom_dropdown_fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField"
            }
          },
          "url": {
            "type": "string",
            "description": "URL to view the bar in a browser.",
            "example": "https://app.productplan.com/bars/1"
          },
          "is_container": {
            "type": "boolean",
            "description": "Whether or not this bar is a container",
            "example": false
          },
          "parent": {
            "type": "object",
            "nullable": true,
            "description": "Container of the bar.",
            "$ref": "#/components/schemas/BarReference"
          },
          "parked": {
            "type": "boolean",
            "description": "Whether or not this bar is parked",
            "example": true,
            "default": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time the bar was first created."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time the bar was last updated."
          },
          "child_bar_count": {
            "type": "integer",
            "description": "The number of child bars associated with the container.",
            "example": 2
          },
          "comment_count": {
            "type": "integer",
            "description": "The number of comments associated with the bar.",
            "example": 3
          },
          "link_count": {
            "type": "integer",
            "description": "The number of links associated with the bar.",
            "example": 1
          },
          "requires_connection_count": {
            "type": "integer",
            "description": "The number of requires connections associated with the bar.",
            "example": 1
          },
          "required_by_connection_count": {
            "type": "integer",
            "description": "The number of required by connections associated with the bar.",
            "example": 1
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "roadmap",
          "starts_on",
          "ends_on",
          "strategic_value",
          "notes",
          "percent_done",
          "tags",
          "lane",
          "legend",
          "custom_text_fields",
          "custom_dropdown_fields",
          "url",
          "is_container",
          "parent",
          "parked",
          "created_at",
          "updated_at",
          "child_bar_count",
          "comment_count",
          "link_count",
          "requires_connection_count",
          "required_by_connection_count"
        ],
        "additionalProperties": false
      },
      "BarReference": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The bar's unique database identifier.",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Title of the bar.",
            "example": "Sail to Monkey Island"
          },
          "url": {
            "type": "string",
            "description": "URL to view the bar in a browser.",
            "example": "https://app.productplan.com/bars/1"
          },
          "api_path": {
            "type": "string",
            "description": "API path for the bar.",
            "example": "/api/v2/bars/1"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "api_path"
        ],
        "additionalProperties": false
      },
      "CustomField": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "The field's label",
            "example": "Ship name"
          },
          "value": {
            "type": "string",
            "nullable": true,
            "description": "Value assigned to the field",
            "example": "Sea Monkey"
          }
        },
        "required": [
          "label",
          "value"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "errors"
        ],
        "additionalProperties": false
      },
      "Pagination": {
        "type": "object",
        "properties": {
          "record_count": {
            "type": "integer",
            "description": "The total number of elements existing in the collection (pre-paging)"
          },
          "page_count": {
            "type": "integer",
            "description": "The total number of pages"
          },
          "current_page": {
            "type": "integer",
            "description": "The current page"
          },
          "page_size": {
            "type": "integer",
            "description": "The number of elements returned in the current page"
          }
        },
        "required": [
          "record_count",
          "page_count",
          "current_page",
          "page_size"
        ],
        "additionalProperties": false
      },
      "RoadmapReference": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The roadmap's unique database identifier.",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Title of the roadmap.",
            "example": "Adventures of Guybrush Threepwood"
          },
          "url": {
            "type": "string",
            "description": "URL to view the roadmap in a browser.",
            "example": "https://app.productplan.com/roadmaps/1"
          },
          "api_path": {
            "type": "string",
            "description": "API path for the roadmap.",
            "example": "/api/v2/roadmaps/1"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "api_path"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 145,
      "2": 51,
      "3": 180,
      "4": 236,
      "5": 85,
      "6": 77,
      "7": 0,
      "8": 85,
      "9": 123,
      "10": 158,
      "11": 250
    }
  }
}
```