r/tasker • • Oct 19 '26

Cancel task if call ongoing

Hi

I'm trying to cancel a task / profile (I'm new so I think the right term is task) if I have an ongoing call. Incoming or outcoming call is irrelevant, just any call = abort task.

How can I set this rule?

Thanks

0 Upvotes

5 comments sorted by

View all comments

2

u/Sate_Hen Oct 19 '26

Set up a profile with the state call any that sets a global variable (eg %Call to 1). You'll need to set an exit task that clears the variable

Stop actions in your task with the if statement if %Call is set

2

u/FoggyWan_Kenobi Oct 20 '26

No need for stop action in current task or global variable,just a profile with its own task with only stop all tasks action and high priority. After current action in the first task is done,all tasks will be stopped.

1

u/Sate_Hen Oct 20 '26

Yeah that'd be better