feat: quick polls in comments that end in a decision
«📊 Añadir una encuesta» adds 2 to 6 options to a new comment. Members, viewers too, vote by clicking an option (one vote each, which they can change or take back) and see each option's votes as a bar. Whoever started it, or an admin, closes it with «Cerrar y decidir»: the most voted wins (none on a tie) and a «Decidido: …» reply marked as a decision shows above the ticket. Events of the comment (voted, closed). API: addComment(…, poll), votePoll, closePoll, Comment.poll; POST /api/comments/{id}/poll/vote and …/poll/close. MCP: add_comment poll, vote_poll, close_poll. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -304,6 +304,7 @@ type Comment {
|
||||
editedAt: String
|
||||
id: ID!
|
||||
issueId: ID!
|
||||
poll: CommentPoll
|
||||
|
||||
"""In the order they are offered; only the ones somebody chose"""
|
||||
reactions: [CommentReaction!]!
|
||||
@@ -336,6 +337,15 @@ type CommentPage {
|
||||
total: Int!
|
||||
}
|
||||
|
||||
"""A quick poll in a comment"""
|
||||
type CommentPoll {
|
||||
closed: Boolean!
|
||||
options: [PollOption!]!
|
||||
|
||||
"""Index of the winning option once closed (null on a tie)"""
|
||||
winner: Int
|
||||
}
|
||||
|
||||
"""One emoji on a comment"""
|
||||
type CommentReaction {
|
||||
emoji: String!
|
||||
@@ -964,7 +974,14 @@ type Mutation {
|
||||
"""
|
||||
Comment on a ticket, or answer a comment (replyTo; one level of replies)
|
||||
"""
|
||||
addComment(body: String!, issueId: ID!, replyTo: ID): CommandResult!
|
||||
addComment(
|
||||
body: String!
|
||||
issueId: ID!
|
||||
|
||||
"""A quick poll: 2 to 6 options"""
|
||||
poll: [String!]
|
||||
replyTo: ID
|
||||
): CommandResult!
|
||||
|
||||
"""
|
||||
Add a repository with its own secret (the first turns the integration on)
|
||||
@@ -1010,6 +1027,11 @@ type Mutation {
|
||||
"""Drop my reminder on a ticket"""
|
||||
clearReminder(issueId: ID!): Boolean!
|
||||
|
||||
"""
|
||||
Close a poll (whoever started it, or an admin); with decide, the winner stays as a decision of the ticket
|
||||
"""
|
||||
closePoll(commentId: ID!, decide: Boolean! = true): CommandResult!
|
||||
|
||||
"""
|
||||
Close the sprint under way. Unfinished tickets move to carryOverToSprintId, or back to the backlog when it is null.
|
||||
"""
|
||||
@@ -1233,6 +1255,11 @@ type Mutation {
|
||||
"""
|
||||
voteIssue(issueId: ID!, on: Boolean!): CommandResult!
|
||||
|
||||
"""
|
||||
Vote in a comment's poll (option index), or take the vote back (null). Members, viewers too
|
||||
"""
|
||||
votePoll(commentId: ID!, option: Int): CommandResult!
|
||||
|
||||
"""
|
||||
Follow a ticket: be told when it moves, is reassigned or gets a comment
|
||||
"""
|
||||
@@ -1373,6 +1400,11 @@ type OptionCount {
|
||||
value: String!
|
||||
}
|
||||
|
||||
type PollOption {
|
||||
text: String!
|
||||
voters: [UserRef!]!
|
||||
}
|
||||
|
||||
"""
|
||||
One of my active projects at a glance: open work, risks, sprint, releases and epics
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user