Tasks and task assignment.
Queries
searchTasks
Searches Tasks
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)filters([SearchFilterInput!]) — A set of filters to applyfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)last(Int) — The number of results to fetch when searching backward (only include first & after or last & before)search(String) — A search term to applysortBy(SortTasksBy) — The sort keysortDir(SortDirection) — The sort direction
Returns: TaskConnection! — A connection to a list of items.
task
A single Task by ID
Arguments
id(ID!) — The unique identifier of the Task
Returns: Task — A task that can be attached to a Note
tasksByIds
A list of Tasks by IDs
Arguments
ids([ID!]!) — The IDs of the Tasks
Returns: [Task]! — A task that can be attached to a Note
Mutations
createTask
Creates a Task
Arguments
assigneeIds([ID!]) — An optional array of User IDs to assign to the TaskcreatedInTeamId(ID) — The Team that the Task was created increatorId(ID) — The User who is creating the TaskcustomerId(ID) — An ID of the Customer to associate with the Taskdeadline(DeadlineInput) — A deadline for the Task to be completeddescription(String) — The description of the TasknotifyAssignees(Boolean) — Whether to notify any newly assigned users that the have been assigned to the Taskrepeat(TaskRepeatInput) — When the Task will repeattags([String!]) — A list of tags to associate with the TasktimeZone(String) — The timezone of the Task assigneestitle(String) — The title of the Task
Returns: CreateTaskPayload!
deleteTask
Deprecated: Use deleteTasks instead
Deletes a Task
Arguments
editorId(ID!) — The ID of the User who is deleting the Taskid(ID!) — The ID of the Task to delete
Returns: DeleteTaskPayload!
restoreTask
Deprecated: Use restoreTasks instead
Restores a Task
Arguments
editorId(ID!) — The ID of the User who is restoring the Taskid(ID!) — The ID of the Task to restore
Returns: RestoreTaskPayload!
updateTask
Updates a Task
Arguments
assigneeIds([ID!]) — An optional array of User IDs to assign to the Taskcompleted(Boolean) — Whether the Task has been completeddeadline(DeadlineInput) — A deadline for the Task to be completeddescription(String) — The description of the TaskeditorId(ID!) — The User who is updating the Taskid(ID!) — The unique identifier of the TasknotifyAssignees(Boolean) — Whether to notify any newly assigned users that the have been assigned to the Taskrepeat(TaskRepeatInput) — When the Task will repeattags([String!]) — A list of tags to associate with the TasktimeZone(String) — The timezone of the Task assigneestitle(String) — The title of the Task
Returns: UpdateTaskPayload!
Objects
CreateTaskError
Fields
code(CreateTaskErrorCode!)human_readable_message(String!)
CreateTaskFailure
Fields
errors([CreateTaskError!]!)
CreateTaskSuccess
Fields
task(Task!)
DeleteTaskError
Fields
code(DeleteTaskErrorCode!)human_readable_message(String!)
DeleteTaskFailure
Fields
errors([DeleteTaskError!]!)
DeleteTaskSuccess
Fields
task(Task!)
RestoreTaskError
Fields
code(RestoreTaskErrorCode!)human_readable_message(String!)
RestoreTaskFailure
Fields
errors([RestoreTaskError!]!)
RestoreTaskSuccess
Fields
task(Task!)
Task
A task that can be attached to a Note
Fields
assignees([User!]!) — The Users that are assigned to the Taskcampaign_draft(CampaignDraft) — The Campaign Draft that the Task is linked tocompleted_at(DateTime) — When the Task was marked as completedcreated_at(DateTime!) — The date the Task was createddeadline(DateTime) — The deadline of the Taskdeleted_at(DateTime) — When the Task was deletedid(ID!) — The unique identifier of the Tasknote(Note!) — The Note that the Task is attached torecurrence_rule(String) — The frequency that the Task recurs on in rrule formatrecurring(String) — The frequency that the Task recurs onrepeat(TaskRepeat) — The frequency that the Task repeatssegment(Segment) — The Segment the Task is linked totime_zone(String) — The time zone of the Tasktimezone(String) — The timezone of the Task — 🚧 Deprecated: Use time_zone insteadupdated_at(DateTime!) — The date the Task was last updatedweb_url(URL!) — The URL to the Task inside the web application — 🚧 Deprecated: No longer supported
TaskConnection
A connection to a list of items.
Fields
edges([TaskEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.total(Int)
TaskEdge
An edge in a connection.
Fields
TaskRepeat
The frequency and interval for a Task to repeat
Fields
by_day_of_month(Int) — Only available when selecting MONTHLY for frequency. Available values are 1-28, or -1 to indicate last day of monthby_days_of_week([TaskRepeatDayOfWeek!]) — Only available when selecting WEEKLY for frequencyformatted(String!) — A human-readable description of the recurrencefrequency(TaskRepeatFrequency!) — A frequency for the recurrenceinterval(Int!) — An interval between recurrences. Defaults to 1, meaning every day, week, month, or yearrule(String!) — A machine-readable description of the recurrencetime_zone(String) — An IANA time zone name (e.g. America/New_York)timezone(String) — An IANA time zone name (e.g. America/NewYork) — 🚧 _Deprecated: Use time_zone instead
UpdateTaskError
Fields
code(UpdateTaskErrorCode!)human_readable_message(String!)
UpdateTaskFailure
Fields
errors([UpdateTaskError!]!)
UpdateTaskSuccess
Fields
task(Task!)
Unions
CreateTaskPayload
Possible types
DeleteTaskPayload
Possible types
RestoreTaskPayload
Possible types
UpdateTaskPayload
Possible types
Input Objects
TaskRepeatInput
The frequency and interval for a Task to repeat
Fields
by_day_of_month(Int) — Only available when selecting MONTHLY for frequency. Available values are 1-28, or -1 to indicate last day of monthby_days_of_week([TaskRepeatDayOfWeek!]) — Only available when selecting WEEKLY for frequencyfrequency(TaskRepeatFrequency!) — A frequency for the recurrenceinterval(Int) — An interval between recurrences. Defaults to 1, meaning every day, week, month, or yeartimezone(NonEmptyString) — An IANA time zone name (e.g. America/New_York)
Enums
CreateTaskErrorCode
Values
ASSIGNEES_NOT_FOUND— One or more assignees were not foundCREATOR_NOT_FOUND— The creator was not foundCUSTOMER_NOT_FOUND— The customer was not foundDEADLINE_MUST_BE_IN_THE_FUTURE— The deadline must be in the futureDEADLINE_REQUIRED_WHEN_REPEATS— A deadline is required when the task repeatsDESCRIPTION_TOO_LONG— The description exceeds the maximum length of 5000 charactersINVALID_DESCRIPTION_HTML— The description is invalidINVALID_REPEAT— The repeat input is invalidINVALID_TIME_ZONE— The time zone is invalidSEGMENT_NOT_FOUND— The segment was not foundTEAM_NOT_FOUND— The team was not foundTIME_ZONE_REQUIRED— A time zone is required when a deadline or repeat is provided
DeleteTaskErrorCode
Values
EDITOR_NOT_FOUND— The editor was not foundFORBIDDEN— You do not have permission to perform this actionTASK_LINKED_TO_V2_CANNOT_BE_MODIFIED— This task is linked to a TaskV2 and cannot be modified directlyTASK_NOT_FOUND— The task was not found
RestoreTaskErrorCode
Values
EDITOR_NOT_FOUND— The editor was not foundFORBIDDEN— You do not have permission to perform this actionTASK_LINKED_TO_V2_CANNOT_BE_MODIFIED— This task is linked to a TaskV2 and cannot be modified directlyTASK_NOT_FOUND— The task was not found
SortTasksBy
The available keys to sort Tasks
Values
CREATED_ATDUE_ATUPDATED_AT
TaskRepeatDayOfWeek
They day of the week
Values
FRIDAYMONDAYSATURDAYSUNDAYTHURSDAYTUESDAYWEDNESDAY
TaskRepeatFrequency
The interval for recurrence
Values
DAILYMONTHLYWEEKLYYEARLY
UpdateTaskErrorCode
Values
ASSIGNEES_NOT_FOUND— One or more assignees were not foundDEADLINE_MUST_BE_IN_THE_FUTURE— The deadline must be in the futureDEADLINE_REQUIRED_WHEN_REPEATS— A deadline is required when the task repeatsDESCRIPTION_TOO_LONG— The description exceeds the maximum length of 5000 charactersEDITOR_NOT_FOUND— The editor was not foundFORBIDDEN— You do not have permission to perform this actionINVALID_DESCRIPTION_HTML— The description is invalidINVALID_REPEAT— The repeat input is invalidINVALID_TIME_ZONE— The time zone is invalidTASK_LINKED_TO_V2_CANNOT_BE_MODIFIED— This task is linked to a TaskV2 and cannot be modified directlyTASK_NOT_FOUND— The task was not foundTIME_ZONE_REQUIRED— A time zone is required when a deadline or repeat is provided
