mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-27 07:25:56 +03:00
[GH-ISSUE #993] Feature Request: Tasks depend on Tasks or Tasks depend on Checks or Checks depend on Tasks #2547
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#2547
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JSuenram on GitHub (Feb 26, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/993
For Example.... you Check if Firewall is enabled.... and if not fire a task that enabled Firewall.... Sure you can do all this in the Check, but not every example is like this.... Or Trigger Tasks on Checks and so on..... more flexibility what will be done if something else returns True or False without the need to put everything possible in a script....
I guess it will be more userfriendly....
@silversword411 commented on GitHub (Feb 26, 2022):
So if I understand this, you want as part of the script and task setup process if return of x do y.
Can this be done with script snippets now as part of your script?
@JSuenram commented on GitHub (Feb 26, 2022):
Yes something like that.
So for example you run a check task and if result is true then run task xy....
@bc24fl commented on GitHub (Feb 27, 2022):
Being able to run a script depending on the output of another is super powerful. I've been thinking of this problem for some time now. The only way to currently do this is by saving your output to Custom Fields and then using the API to run the next script but that can get sloppy pretty quick although doable.
@r3die commented on GitHub (Feb 28, 2022):
This is something you may be able to with checks and setting exit codes in your scripts.
For instance, I have a PS script as a check, when it finds something it ends with a certain exit code that TRMM check sees as a 'failure', then I have a dependent task that runs upon failure
@silversword411 commented on GitHub (Mar 1, 2022):
@JSuenram So there is already support for running a task (on check error) when a check fails (have check be a script with a return code).
Will that do everything you're trying to do, or do we need to keep this issue open?
@silversword411 commented on GitHub (Mar 16, 2022):
Closing, will reopen if hear back