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 whoseclosedStatusis"open", plus open stacks (and all of their projects).ON_HOLD— standalone projects whoseclosedStatusis"hold". No stacks appear on this tab.DONE_ARCHIVED— standalone projects whoseclosedStatusis"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
closedStatusof the projects inside them. Once a stack is visible, ALL of its projects are returned (ordered byposition), regardless of each project's status. - 100%-complete projects are kept on whichever tab their
closedStatusputs 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
projectsquery (same Pie access control); no new data is exposed. - With no
workspaceId/organizationIdthe result spans every workspace the user can see; pass either argument to scope it. groupByStack: falseflattens everything intostandaloneProjects(naturally sorted) and returns nostacks.
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, andclosedStatusunless the customer asks for them.
Arguments
#
groupByStack = true
includeDeleted
organizationId
sort = "TITLE_ASC"
tab = "IN_PROGRESS"
workspaceId
Response
#
Returns ProjectListView .
Example
#
project
projectTodos
