Hi. Is there a way to let kanboard detect a change of tags and/or metadata change when saving a task?
This is neccassary to use automatic actions with TASK_MODIFIED for automatic logging. We use tags to visualize that a customer has been reminded to react on an e-mail. Now it would be helpful to log this reminding action in the description. Currenty a change of tags and metadata doesn’t seem to be logged anywhere.
Thanks for the reply! Everything is possible for those who believe. Sometimes I kind of forget that.
But I thought I had a bathroom with a sink and toilet. I wanted to connect my washing machine now, because I thought there should be a connection normally. Unfortunately, I’m not a plumber, so I’m not sure if I a) just did not recognize the connection or b) need an adapter for the inlet and outlet of the sink.
In terms of kanboard, my understanding, as written, is that TASK_MODIFIED seems to be the key to triggering an automatic action when a task is saved. In my second life, I do tinker around with C# scripts inside a game engine. However, I don’t understand enough about software architecture and especially php to be able to understand the kanboard’s cause-and-effect relationships.
So “Thanks for any ideas!” referred to possible solutions to estimate if triggering an automatic action by changing a tag is realistic for my level or not. Or in other words: “Check the washing machine connection again! It has to be there”, “You need an adapter, but think carefully about whether you want to install it yourself” or “Please don’t start knocking a huge hole in the wall to lay pipes on your own (especially not where power lines are laid). Call an installer for help!”?
Thanks a lot! Yes, I dont’t know where the TASK_MODIFIED came from.
I did see this isModified function before but I wasn’t aware that TaskModificationModel.php was somehow overwritten by NewTaskModofocationModel.php in the MetaMagik Plugin. When replacing “elseif ($this->isModified($task, $changes))” with “else” in both files EVENT_UPDATE is triggered every time, the task card has been opened.
So for a clean way I have to figure our how to add some tagsModified and metaModified function and change the line in TaskModificationModel.php and NewTaskModificationModel.php to “elseif ($this->isModified($task, $changes) || tagsModified($task, $changes) || metaModified($task, $changes))”.
If I find out how to do this, I’m going to reply again.