Files
task-stream/libs/web/tracker/infrastructure/src/lib/graphql/fragments.graphql
Josep Piguillem d79ef418d3 feat: follow an epic with everything under it
«Seguir todo» on a ticket with subtasks (and on each epic of the Epics
page) tells you of it and of every ticket hanging from it, at any depth,
also the ones added later: their moves, assignments, comments and plan
changes, as a follower of each, plus when a ticket is placed under it.
Guests of a private project are left out. Personal, no history (Mongo
`tree_follows`).

API: followTree / unfollowTree, Issue.followingTree, PUT/DELETE
/api/issues/{issue}/follow-tree. MCP: watch_issue with tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:59:04 +02:00

229 lines
2.5 KiB
GraphQL

fragment UserRefFields on UserRef {
id
name
}
fragment ProjectFields on Project {
id
key
name
description
isPublic
acceptsProposals
archivedAt
updatedAt
version
owner {
...UserRefFields
}
members {
role
user {
...UserRefFields
}
}
settings {
statuses {
id
name
category
color
requiresReason
archived
wipLimit
}
transitions {
from
to
}
issueTypes {
id
name
icon
color
archived
template {
description
checklist
}
}
areas {
id
name
archived
}
customFields {
id
name
type
options
archived
}
checklistBeforeDone
teams {
id
name
memberIds
archived
}
}
}
fragment IssueSummaryFields on Issue {
id
projectId
key
type
area
team
title
status
statusCategory
priority
labels
commentCount
updatedAt
version
assignee {
...UserRefFields
}
release {
id
name
}
sprint {
id
name
}
parent {
id
key
title
}
blockedBy {
id
key
title
}
votes
voted
rank
storyPoints
startDate
dueDate
customFields {
fieldId
value
}
trashedAt
}
fragment IssueFields on Issue {
...IssueSummaryFields
pinned
followingTree
decisions {
...CommentFields
}
description
figmaUrl
createdAt
allowedTransitions
reporter {
...UserRefFields
}
links {
type
direction
issueId
issueKey
}
watchers {
...UserRefFields
}
checklist {
id
text
done
}
devLinks {
kind
url
title
ref
state
provider
repository
author
at
}
attachments {
id
fileName
mimeType
size
uploadedAt
commentId
uploadedBy {
...UserRefFields
}
}
}
fragment CommentFields on Comment {
id
issueId
body
replyTo
deleted
reactions {
emoji
users {
...UserRefFields
}
}
decision
decidedBy {
...UserRefFields
}
resolved
resolvedBy {
...UserRefFields
}
createdAt
editedAt
author {
...UserRefFields
}
}
fragment ReleaseFields on Release {
id
projectId
name
description
targetDate
status
releasedAt
notes
}
fragment ActivityFields on Activity {
id
type
projectId
issueId
issueKey
summary
occurredAt
actor {
...UserRefFields
}
}
fragment CommandResultFields on CommandResult {
id
key
version
}