onclick post title in admin area javascript file not working

add_action('admin_enqueue_scripts','tasks_js_file_func');

Try with this action called admin_enqueue_scripts It’ll enqueue your js file inside of the WordPress admin area.

tech