Managed to get a working solution. I don't know if it is a hack or not, but it works and that's what matters for me in the end.
var context = SP.ClientContext.get_current();
var list = context.get_web().get_lists().getByTitle("Approval Tasks");
var item2 = list.getItemById(taskId);
Below would help.
Please check your Approval Task List settings, is comment column custom created? If so, you can just use internal column of of your custom column
If you are using default list schema for tasks. There is something you need to understand.
By default OOTB task form, there is no comment field. User have to use Description column like below.
Yes you can get the details of the user who approves the task.
After the approval process start stage, when you try to get the Task:Assigned To , you will get the details of the user who approves the current task.
Refer below screenshot:
You can create a simple approval workflow on this document library via Library settings->Workflow settings->Add a workflow-> Select a workflow template: Approval-SharePoint 2010.
When the employee upload the document to library, he can trigger this workflow manually or set automatically start workflow when an new item is created in workflow settings. Then ...