README
¶
subtask
Plugin
This plugin creates a new task. A step based on this type of action will remain incomplete until the subtask is fully DONE
.
Configuration
An action of type subtask
requires the following kind of configuration:
action:
type: subtask
configuration:
# a template that must already be registered on this instance of µTask
template: another-task-template
# valid input, as defined by the referred template
input:
foo: bar
# optionally, a list of users which are authorized to resolve this specific task
resolver_usernames: [authorizedUser]
Requirements
None.
Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Plugin = taskplugin.New("subtask", "0.1", exec, taskplugin.WithConfig(validConfig, SubtaskConfig{}), taskplugin.WithContextFunc(ctx), ) )
the subtask plugin spawns a new µTask task, given a template and inputs an extra parameter is accepted, not available on API resolver usernames can be dynamically set for the task
Functions ¶
This section is empty.
Types ¶
type SubtaskConfig ¶
type SubtaskConfig struct { Template string `json:"template"` Input map[string]interface{} `json:"input"` ResolverUsernames string `json:"resolver_usernames"` }
SubtaskConfig is the necessary configuration to spawn a new task
type SubtaskContext ¶
type SubtaskContext struct { TaskID string `json:"task_id"` RequesterUsername string `json:"requester_username"` }
SubtaskContext is the metadata inherited from the "parent" task"
Click to show internal directories.
Click to hide internal directories.