c.l.cladDocs

Issues

Every issue query and mutation: inbox, create, reply, status, priority, tags, assignment, spam/trash.

Create issues, read the inbox, reply, and manage status, priority, tags, assignment, and spam/trash state.

Queries

issue

issue(id: ID!): Issue
ArgumentTypeDescription
idID!Required.

issues

issues(accountId: ID, after: String, assigneeProfileId: ID, first: Int, search: String, sortKey: IssueSortKey, status: IssueStatus, tag: String, target: InboxTarget): IssueConnection
ArgumentTypeDescription
accountIdIDFilter to issues linked to this account (opaque Account id).
afterString
assigneeProfileIdIDFilter to issues assigned to this org member (opaque Profile id).
firstInt
searchStringCase-insensitive match on subject or last message preview.
sortKeyIssueSortKeySort anchor (descending). Defaults to createdAt.
statusIssueStatus
tagStringFilter to issues carrying this tag (exact match).
targetInboxTarget

Mutations

assignIssue

assignIssue(assigneeProfileId: ID, issueId: ID!): IssueMutationResult
ArgumentTypeDescription
assigneeProfileIdIDOpaque Profile id of an org member, or null to unassign.
issueIdID!Required.

createIssue

createIssue(input: CreateIssueInput!): CreateIssueResult
ArgumentTypeDescription
inputCreateIssueInput!Required.

followIssue

followIssue(issueId: ID!, profileId: ID): IssueMutationResult

Add a follower to an issue. Humans follow themselves when profileId is omitted; machine actors must name an org member.

ArgumentTypeDescription
issueIdID!Required.
profileIdIDOpaque Profile id of the member to add (defaults to the caller for human sessions).

replyToIssue

replyToIssue(input: ReplyToIssueInput!): ReplyToIssueResult
ArgumentTypeDescription
inputReplyToIssueInput!Required.

setIssueAccount

setIssueAccount(accountId: ID, issueId: ID!): IssueMutationResult

Link an issue to a CRM account (null unlinks). Team routing inherited from the account follows automatically.

ArgumentTypeDescription
accountIdIDOpaque Account id, or null to unlink.
issueIdID!Required.

setIssuePriority

setIssuePriority(issueId: ID!, priority: IssuePriority!): IssueMutationResult
ArgumentTypeDescription
issueIdID!Required.
priorityIssuePriority!Required.

setIssueSpam

setIssueSpam(isSpam: Boolean!, issueId: ID!): IssueMutationResult
ArgumentTypeDescription
isSpamBoolean!Required.
issueIdID!Required.

setIssueStatus

setIssueStatus(issueId: ID!, status: IssueStatus!): IssueMutationResult
ArgumentTypeDescription
issueIdID!Required.
statusIssueStatus!Required.

setIssueTags

setIssueTags(issueId: ID!, tags: [String!]!): IssueMutationResult
ArgumentTypeDescription
issueIdID!Required.
tags[String!]!Required.

setIssueTeams

setIssueTeams(issueId: ID!, teamIds: [ID!]!): IssueMutationResult

Replace the manual team assignments on an issue (same semantics as the inbox team picker).

ArgumentTypeDescription
issueIdID!Required.
teamIds[ID!]!Opaque Team ids; empty list clears manual assignments.

setIssueTrashed

setIssueTrashed(issueId: ID!, trashed: Boolean!): IssueMutationResult
ArgumentTypeDescription
issueIdID!Required.
trashedBoolean!true to move to trash, false to restore.

unfollowIssue

unfollowIssue(issueId: ID!, profileId: ID): IssueMutationResult

Remove a follower from an issue (defaults to the caller for human sessions).

ArgumentTypeDescription
issueIdID!Required.
profileIdIDOpaque Profile id of the member to remove (defaults to the caller for human sessions).