diff --git a/src/components/AutomatedTasksTab.vue b/src/components/AutomatedTasksTab.vue
index c4d99e7..babc374 100644
--- a/src/components/AutomatedTasksTab.vue
+++ b/src/components/AutomatedTasksTab.vue
@@ -60,6 +60,14 @@
+
+
+
+ Collector Task
+
+
+
+
@@ -170,6 +178,13 @@
This task is managed by a policy
+
+
+
+
+ The task updates a custom field on the agent
+
+
@@ -199,6 +214,8 @@
Will sync on next agent checkin
Synced with agent
Pending deletion on agent
+ Waiting for task creation on agent
+
state.automatedTasks,
}),
tasks() {
- return this.automatedTasks.autotasks;
+ return this.automatedTasks.autotasks.filter(task => task.sync_status !== "pendingdeletion");
},
},
};
diff --git a/src/components/automation/PolicyAutomatedTasksTab.vue b/src/components/automation/PolicyAutomatedTasksTab.vue
index 30a6fe1..90a3943 100644
--- a/src/components/automation/PolicyAutomatedTasksTab.vue
+++ b/src/components/automation/PolicyAutomatedTasksTab.vue
@@ -61,6 +61,15 @@
+
+
+
+
+ Collector Task
+
+
+
+
@@ -130,6 +139,12 @@
v-model="props.row.dashboard_alert"
/>
+
+
+
+ The task updates a custom field on the agent
+
+
{{ props.row.name }}
{{ props.row.schedule }}
@@ -182,6 +197,7 @@ export default {
{ name: "smsalert", field: "text_alert", align: "left" },
{ name: "emailalert", field: "email_alert", align: "left" },
{ name: "dashboardalert", field: "dashboard_alert", align: "left" },
+ { name: "collector", label: "Collector", field: "custom_field", align: "left" },
{ name: "name", label: "Name", field: "name", align: "left" },
{
name: "schedule",
diff --git a/src/components/automation/modals/PolicyStatus.vue b/src/components/automation/modals/PolicyStatus.vue
index d995e3f..f639e6e 100644
--- a/src/components/automation/modals/PolicyStatus.vue
+++ b/src/components/automation/modals/PolicyStatus.vue
@@ -62,6 +62,8 @@
Will sync on next agent checkin
Synced with agent
Pending deletion on agent
+ Waiting for task creation on agent
+
+
+
+
+
@@ -86,6 +108,7 @@
v-model.number="autotask.timeout"
type="number"
label="Maximum permitted execution time (seconds)"
+ class="q-pb-none"
/>
@@ -190,10 +213,13 @@ export default {
return {
step: 1,
scriptOptions: [],
+ customFieldOptions: [],
+ collector: false,
autotask: {
script: null,
script_args: [],
assigned_check: null,
+ custom_field: null,
name: null,
run_time_days: [],
run_time_minute: null,
@@ -319,6 +345,10 @@ export default {
if (this.policypk) {
this.getPolicyChecks();
}
+
+ this.getCustomFields("agent").then(r => {
+ this.customFieldOptions = r.data.map(field => ({ label: field.name, value: field.id }));
+ });
},
};
\ No newline at end of file