Skip to content

TODO Auto Rules

A TODO auto rule creates and completes TODOs automatically in response to system events. See Auto Rules for how they work.

/backend/api/v1/todoAutoRules/ID - fetch the auto rule with the specified ID.

/backend/api/v1/todoAutoRules/ - list all auto rules.

ParameterTypeRequiredDescription
idAfterintegerNoOnly include rules with a higher ID
createdSincedatetimeNoOnly include rules created since the given time
updatedSincedatetimeNoOnly include rules updated since the given time

/backend/api/v1/todoAutoRules/ - add a new auto rule. The newly-added rule will be returned.

/backend/api/v1/todoAutoRules/ID - update the auto rule with the specified ID. The modified rule will be returned.

/backend/api/v1/todoAutoRules/ID - delete the auto rule with the specified ID.

FieldNameTypeDescription
enabledEnabledTextTurn this auto rule on or off.
nameNameTextShort, unique name for this rule.
descriptionDescriptionText (Multiline)Optional description to clarify the purpose of this rule.
todoTypeTODO TypePreset ValueType to assign to created TODOs. Used for permissions and context.
repeatRuleRepeat Rule (optional)Preset ValueOptional recurrence preset to apply to created TODOs.
closeOnCustomerDropClose When Customer DroppedTextWhen enabled, TODOs created under this rule are auto-completed (or sent for review) when the linked customer is dropped, based on customerID, regardless of the attached object.
reviewRequiredReview RequiredTextIf enabled, completion moves TODOs into the review stage first.
reviewUsersReviewers (Users)Preset Value(s)Default reviewers (users) for created TODOs.
reviewDepartmentsReviewers (Departments)Preset Value(s)Default reviewers (departments) for created TODOs.
createEventIDsCreate EventsTextSystem events that create a TODO under this rule.
completeEventIDsComplete EventsTextSystem events that auto-complete or send for review matching TODOs.
createActivityTypeIDsTrigger on Activity TypesPreset Value(s)Optional. User activity types that should create TODOs when logged against matching objects. Leave blank to ignore user activity triggers for this rule.
completeActivityTypeIDsComplete on Activity TypesPreset Value(s)Optional. User activity types that should complete or send for review matching TODOs when logged against matching objects. Leave blank to ignore activity-based completion for this rule.
activityOnObjectTypesActivity On Object TypesTextOptional. Restrict activity-based triggers to specific object types (matching Activity On Type in the user activity log). Leave blank for any.
notBeforeDaysSnooze (working days)TextNumber of working days to delay visibility (sets notBeforeDate). 0 means no snooze.
expiryDaysAuto-expire after (working days)TextOptional. Auto-expire created TODOs after N working days. Leave blank to disable.
defaultUsersResponsible UsersPreset Value(s)Default responsible users; applied on creation.
defaultDepartmentsResponsible DepartmentsPreset Value(s)Default responsible departments; applied on creation.
idTODO Auto Rule IDText