List Saved Views

Query and retrieve saved views in a Blue workspace with pagination support.


List Saved Views

The savedViews query retrieves all saved views that the current user can access in a workspace. This includes the user’s own personal views and all shared views created by any workspace member. Results are ordered by position descending.

Basic Example

List all saved views in a workspace:

query ListSavedViews {
  savedViews(
    filter: {
      projectId: "clm4n8qwx000008l0g4oxdqn7"
    }
  ) {
    items {
      id
      name
      viewType
      isShared
      position
    }
    pageInfo {
      totalItems
      hasNextPage
    }
  }
}

Advanced Example

Retrieve saved views with full details, pagination, and nested relationships:

query ListSavedViewsAdvanced {
  savedViews(
    filter: {
      projectId: "clm4n8qwx000008l0g4oxdqn7"
    }
    skip: 0
    take: 50
  ) {
    items {
      id
      uid
      name
      icon
      viewType
      isShared
      position
      viewConfig
      createdBy {
        id
        fullName
      }
      project {
        id
        name
      }
      createdAt
      updatedAt
    }
    pageInfo {
      totalPages
      totalItems
      page
      perPage
      hasNextPage
      hasPreviousPage
    }
  }
}

Get a Single Saved View

To retrieve a specific saved view by ID, use the savedView query:

query GetSavedView {
  savedView(id: "view_abc123") {
    id
    uid
    name
    icon
    viewType
    isShared
    position
    viewConfig
    createdBy {
      id
      fullName
    }
    createdAt
    updatedAt
  }
}

Input Parameters

SavedViewFilterInput

ParameterTypeRequiredDescription
projectIdString!YesID or slug of the workspace to list views from

Pagination Parameters

ParameterTypeDefaultDescription
skipInt0Number of records to skip
takeInt100Number of records to return

Single View Parameters

ParameterTypeRequiredDescription
idString!YesUnique identifier of the saved view to retrieve

Response Fields

SavedViewPagination

FieldTypeDescription
items[SavedView!]!Array of saved view objects
pageInfoPageInfo!Pagination metadata

SavedView

FieldTypeDescription
idID!Unique identifier for the saved view
uidString!User-friendly unique identifier
nameString!Display name of the saved view
iconStringIcon identifier
positionFloat!Sort position for ordering views
isSharedBoolean!Whether the view is visible to all workspace members
viewTypeSavedViewType!View layout type (BOARD, DATABASE, CALENDAR, TIMELINE, MAP)
viewConfigJSON!Configuration object with filters, sorting, columns, and other settings
createdByUser!The user who created the view
projectProject!The workspace this view belongs to
createdAtDateTime!Timestamp when the view was created
updatedAtDateTime!Timestamp when the view was last updated

PageInfo

FieldTypeDescription
totalPagesIntTotal number of pages available
totalItemsIntTotal count of views matching the filter
pageIntCurrent page number
perPageIntNumber of items per page
hasNextPageBoolean!Whether there is a next page
hasPreviousPageBoolean!Whether there is a previous page

Required Permissions

Workspace RoleCan List Views
OWNERYes
ADMINYes
MEMBERYes
CLIENTYes
COMMENT_ONLYYes
VIEW_ONLYYes

Any workspace member can query saved views. Users will see their own personal views plus all shared views in the workspace.

Error Responses

Saved View Not Found (Single View Query)

{
  "errors": [{
    "message": "Saved view was not found.",
    "extensions": {
      "code": "SAVED_VIEW_NOT_FOUND"
    }
  }]
}

When: The specified view ID does not exist, the user is not a member of the workspace, or the view is a personal view owned by another user.

Important Notes

  • Visibility Rules: Users see their own personal views and all shared views. Personal views created by other users are never returned.
  • Ordering: Results are returned ordered by position descending by default.
  • Default Pagination: If take is not specified, up to 100 views are returned per request.
  • Workspace Default View: To check which view is the workspace default, query the defaultSavedView field on the Project type. To check the current user’s personal default, query the userDefaultSavedView field.
  • Create Saved View: Use createSavedView mutation to create new views
  • Edit Saved View: Use editSavedView mutation to update views
  • Delete Saved View: Use deleteSavedView mutation to remove views