You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Just as the title says, I need to make an API call to another server after a task moves from/to any column on the panel. Per tutorials, I built basic plugin code, but I don't seem to understand how to get the data from the $event object. I can trigger the event based on task move:
public function initialize() {
// Listen to the event when a task moves between columns
$this->on('task.move.column', 'Kanboard\Plugin\ColumnChangeAPI\Listener::onTaskMove');
}
and my code has:
class Listener extends Base {
public static function onTaskMove($event) {
$task = $event['task'];
$project = $event['project'];
...
I need to extract 'task_id' and 'project_id' and present column info from $event, but I failed over and over on this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Just as the title says, I need to make an API call to another server after a task moves from/to any column on the panel. Per tutorials, I built basic plugin code, but I don't seem to understand how to get the data from the $event object. I can trigger the event based on task move:
and my code has:
I need to extract 'task_id' and 'project_id' and present column info from $event, but I failed over and over on this.
Could anyone pls point me at the right direction?
Tkanks
Beta Was this translation helpful? Give feedback.
All reactions