for post ID you need to supply the id of the post you are editing, ACF may not be able to figure that out unless the form is located inside “The Loop” in “single-task.php”.
Then you need to create an acf/save_post filter to update the post status and other information. ACF will not do this for you. https://www.advancedcustomfields.com/resources/acf-save_post/