Add Minutes and Seconds to "Set Timer" action in Rules

I have designed a workflow that relies on a very short timer to be set in order to trigger another action once the timer expires. Currently we are limited to Hours and Days in the Rules action for setting and starting a timer, leaving me to resort to AI Studio to override this and use seconds instead.

Ideally I would love to see Seconds and Minutes added to the list of drop-down options, so that I don’t chew through credits for something this trivial. Even with the low cost o3 model, this rule is costing ~200 credits per trigger, and I am anticipating that this rule will be triggered in high volume, which will quickly consume credits.

1 Like

@MattCLARK_i.DO, Don’t forget to click the title to scroll to the top and vote by clicking the Vote button, as I just did!

Thanks,

Larry

2 Likes

Thanks @MattCLARK_i.DO

I 100% would love to see this too

1 Like

I just wanted to solve this with a Script Action, but it seems that custom fields of type Timer are not yet exposed via the API - or am I missing something? @lpb @Bastien_Siebman

My intention was to use the Timer field to delay rule executions by seconds/minutes. As this didn’t work (see above), I’ve helped myself with this Script Action:

const sleepSync = (ms) => {
  const end = Date.now() + ms;
  while (Date.now() < end) {}
};

const section_gid = "YOUR_SECTION_GID";

async function run() {
  sleepSync(5000);

  await sectionsApiInstance.addTaskForSection(section_gid, {
    body: { data: { task: task_gid } },
  });
}

run();

By the way: delaying rule executions is a highly requested feature for years - see: Delay for Asana rules - #12 by Jakub_Kwaśniewski

1 Like

Just be careful the timeout is 60sec for Script Actions

1 Like