You can get the task this way:
private void OnKanbanChange(Event ev)
{
KanbanChangeEventDetail detail = ev[“Detail”];
var oldValue = detail.OldValue;
var value = detail.Value;
KanbanDataRecord record = new KanbanDataRecord();
record.Text = value.text;
record.Status = value.status;
record.Priority = value.priority;
string task = detail.Task.ToString();
string valueToString = detail.Value.ToString();
}
When you have the new properties, you can modify the record in the database.
I hope this helps!