Hello @Josep ,
In order to reset a task you will need to reopen it first if it has been previously run. To reopen a task you can run the command !taskReopen which takes as arguments:
i. The id of the task (that can be a tag assigned to the task in the task's details tab).
ii. The incidentId of the incident running the playbook.
iii. The parentPlaybookID, which is to limit the task to reopen if it's found in different subplaybooks.
!taskReopen id=TaggedTask incidentId=1111
Once the task has been reopened, it can then be marked as completed using the !taskComplete command:
!taskComplete id=TaggedTask isAutoRun=true incidentId=1111
Thanks for your response
We have tried to execute the command "!taskReopen id=TaggedTask". However, it doesn't work. This kind of strange behaviour seems to happen when we restart XSOAR and some running tasks get bugged. The status of these playbooks is still "running", so it makes it really difficult to detect.
Any other ideas? Could it be something related to the docker running behind?
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!