Magidoc

projectListView
Query

Returns the list of Projects that current User is assigned to. It is the Project List page exactly as the Pie UI presents it: by default the In Progress tab, grouped by stack, and naturally sorted by title. Use this — not projects — to answer "what are my projects?", "my current/active/assigned projects", or to reproduce the project list a user sees on screen.

Tab (tab, default IN_PROGRESS):

  • IN_PROGRESS — standalone projects whose closedStatus is "open", plus open stacks (and all of their projects).
  • ON_HOLD — standalone projects whose closedStatus is "hold". No stacks appear on this tab.
  • DONE_ARCHIVED — standalone projects whose closedStatus is "closed", plus closed stacks (and all of their projects).
  • ALL — every project and stack regardless of status. This is what the UI requests so it can switch tabs without re-fetching.

Rules encoded here so callers never re-derive them:

  • Stacks are filtered by the stack's own open/closed flag, independently of the closedStatus of the projects inside them. Once a stack is visible, ALL of its projects are returned (ordered by position), regardless of each project's status.
  • 100%-complete projects are kept on whichever tab their closedStatus puts them — completeness is never used as a filter.
  • Soft-deleted projects are never returned unless a platform admin passes includeDeleted: true (ignored for non-admins).
  • Visibility is identical to the projects query (same Pie access control); no new data is exposed.
  • With no workspaceId/organizationId the result spans every workspace the user can see; pass either argument to scope it.
  • groupByStack: false flattens everything into standaloneProjects (naturally sorted) and returns no stacks.

The list is always complete — projectListView is not paginated; totalCount reports the number of projects returned. appliedFilters describes exactly which filters were applied so an AI assistant can state scope truthfully.

When the customer asks what projects they are assigned to, or similar (for example "what am I working on", "show my current projects"), request workspace { name organization { name } } on standaloneProjects and on the projects inside stacks, then render the result as text:

  • Group by organization and workspace. Heading: {workspace.organization.name} — {workspace.name} workspace (for example "Axis (Enterprise) — Operations workspace"). Sort headings alphabetically by full heading text.
  • Under each heading, interleave standalone projects and stacks into one list sorted alphabetically by title. Label a stack {stack.title} (Stack) and indent its member projects beneath it in API order.
  • Omit id, progress, currentUserProjectRole, and closedStatus unless the customer asks for them.

Arguments

#

groupByStack = true

includeDeleted

organizationId

sort = "TITLE_ASC"

tab = "IN_PROGRESS"

workspaceId

Response

#

Returns ProjectListView .

Example

#