If you create a series of task called task, task1, task2, and so on.. and you use this function BIS_fnc_taskSetState to make:
["task", "CANCELED"] call BIS_fnc_taskSetStat
You have canceled all the task with the name "task", "task1", "task2".
I think this a problem with the interal string parser of the game.