Accidentally adding tasks just by clicking blank spaces or clicking "Enter" after creating a task

2017 to 2021 and still no fix for this??? 107 votes for this one issue that people have commented saying they are switching to another platform over. You would think it would be higher priority for something so stupid of an issue. FIX THIS!!!

2 Likes

has this been fixed? is there a way to avoid creating a task by clicking in the empty spaces yet?

1 Like

Work around:

I created this rule to delete the task when the name/title is empty:

External Script:

async function run() {
const taskGID = task_gid;

// Step 1: Fetch task details
const taskData = await tasksApiInstance.getTask(task_gid, {
opt_fields: ‘custom_fields, name’ // Include the name field
});

if (taskData) {
log("Fetching task details was successful: " + taskData.data.gid);

// Step 2: Get the task name
const taskName = taskData.data.name; // Access the task name
log("Task Name: " + taskName); // Log the task name

// Step 3: Check if taskName is null or an empty string, then delete the task
if (taskName === null || taskName.trim() === "") { // Check for null or empty string
  log("Task name is null or empty. Deleting the task...");
  await tasksApiInstance.deleteTask(task_gid) // Delete the task
    .then(() => {
      log("Task deleted successfully: " + task_gid);
    })
    .catch(error => {
      log("Failed to delete task: " + error);
    });
} else {
  log("Task name is not null or empty, no action taken.");
}

} else {
log("Fetching task details failed: " + JSON.stringify(taskData));
return;
}
}

// Force a log so we see success too log(:white_check_mark: Successfully added “${sourceValue}” to VS Shops Field); }
run();