Autonotifiation startActivityAndCollapse()
When I use an Autonotification tile with "Hide Notifications" as an option (to collapse the notification shade), I instead get a warning that Autonotification cannot close the shade and I should be using "Close System Dialogs" from the fired task to close the shade.
Unfortunately, a work profile on my device prevents me from using Tasker's accessibility service, so this is not an option for me.
However, other apps I use with quick setting tiles all seem to be able to accomplish this goal without special permissions. As does the QuickTask Tasker plugin.
All of these other apps appear to be using the startActivityAndCollapse() method: