- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-18-2023 01:51 AM
Hello,
We are using a playbook to run again tasks which are already running. Just to reset the task. However, when the command "taskComplete isAutoRun=True" is used, it doesn't run again. How can we avoid this? Is there another option?
09-19-2023 02:21 PM
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.
E.g.
!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
09-21-2023 12:32 AM
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!