Has-todo for specific user

I wish to assign To-Do tasks to a specific user. Is this the correct way to do it?

'To-Do': stategroup @default: 'No' (
	'No' { }
	'Yes' {
		'Task': text @multi-line
		'Assigned to': text -> ^ ^ ^ ^ ^ .'Admin'.'User Management'.'Users'[] @validate: resolvable @default: user .'Name'
		'Deadline': number 'date'
		'Resolved': stategroup @default: 'No' (
			'Yes' {
				'Successfull': stategroup (
					'Yes' { }
					'No' { }
				)
			}
			'No' {
				has-todo: ^ >'Assigned to'
			}
		)
	}
)

Hi, if you wish to create a todo list of tasks that are not part of the system’s processes themselves, this seems fine.

But I would recommend to add an action in the same node as the has-todo: that can set Resolved to Yes, this makes handling the todo’s from the todo list more convenient.

1 Like