first commit
This commit is contained in:
107
libs/web/tracker/infrastructure/src/lib/graphql/issues.graphql
Normal file
107
libs/web/tracker/infrastructure/src/lib/graphql/issues.graphql
Normal file
@@ -0,0 +1,107 @@
|
||||
query Board(
|
||||
$idOrKey: String!
|
||||
$releaseId: ID
|
||||
$assigneeId: ID
|
||||
$area: IssueArea
|
||||
) {
|
||||
project(idOrKey: $idOrKey) {
|
||||
id
|
||||
board(
|
||||
releaseId: $releaseId
|
||||
assigneeId: $assigneeId
|
||||
area: $area
|
||||
perColumn: 100
|
||||
) {
|
||||
status
|
||||
total
|
||||
issues {
|
||||
...IssueSummaryFields
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query Issue($idOrKey: String!) {
|
||||
issue(idOrKey: $idOrKey) {
|
||||
...IssueFields
|
||||
}
|
||||
}
|
||||
|
||||
query SearchIssues($filter: IssueFilterInput!) {
|
||||
issues(filter: $filter, limit: 20) {
|
||||
items {
|
||||
...IssueSummaryFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation CreateIssue($input: CreateIssueInput!) {
|
||||
createIssue(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation UpdateIssue($input: UpdateIssueInput!) {
|
||||
updateIssue(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation ChangeIssueStatus($input: ChangeIssueStatusInput!) {
|
||||
changeIssueStatus(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation AssignIssue($issueId: ID!, $assigneeId: ID) {
|
||||
assignIssue(issueId: $issueId, assigneeId: $assigneeId) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation LinkIssues($input: LinkIssuesInput!) {
|
||||
linkIssues(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation UnlinkIssues($input: LinkIssuesInput!) {
|
||||
unlinkIssues(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation SetIssueRelease($issueId: ID!, $releaseId: ID) {
|
||||
setIssueRelease(issueId: $issueId, releaseId: $releaseId) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
query IssueComments($idOrKey: String!) {
|
||||
issue(idOrKey: $idOrKey) {
|
||||
id
|
||||
comments(limit: 200) {
|
||||
items {
|
||||
...CommentFields
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation AddComment($issueId: ID!, $body: String!) {
|
||||
addComment(issueId: $issueId, body: $body) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation EditComment($commentId: ID!, $body: String!) {
|
||||
editComment(commentId: $commentId, body: $body) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation DeleteComment($commentId: ID!) {
|
||||
deleteComment(commentId: $commentId) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user