hrm_todo widget - Comments on reject

matt_a
Kilo Guru

With the hrm_todo widget in the employee center, it appears that comments on rejection of an approval for a request item, are not available and allows a user to reject without comments.

Looking at the widget: Todos Requested Item Approval

This has the following set:

        data.approvalActionsWidget = $sp.getWidget("todo-approval-actions", {
            sysId: data.sysId,
            useCommentBox: false,
            commentId: options.commentId,
            commentTable: options.commentTable

So changing this to: useCommentBox: true,

This provides a comment box and makes it madatory! Hurah!

However, it doesnt seem to post the comments on the approval:

find_real_file.png

But it must be adding it to the journal as it does get posted to the RITM via the rejection comment business rule:

find_real_file.png

Any ideas on this? I would like the comments on the approval as when the approver gets confirmation via email, the comments arent there.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

which page are you referring?

what debugging have you performed on that widget?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

which page are you referring?

what debugging have you performed on that widget?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

The page being:

https://<InstanceName>.service-now.com/sp/?id=hrm_todo&view=sp&sysparm_tableName=sysapproval_approver&sys_id=a288f8e21b764150a138fc4cd34bcbe9&todo_sys_id=23fb71a8731023002ceb31d7caf6a7b6

It uses this widget for the approve/reject buttons:

https://<InstanceName>.service-now.com/nav_to.do?uri=sp_widget.do?sys_id=34a149f0531130107eb7ddeeff7b1271

Reading through the widget, it appears that it posts the comments directly on Request item rather than the approval which is a bit awkward as if the approver emails in, it will post on the approval record. So seems like a bit of inconsistency in the employee center widget?

I guess I would need to update the widget to post to the approval record?

Hi,

yes try to update the widget.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

I decided against updating the widget as want it to remain OOB as much as possible! So just removed the comments section from the rejection confirmation notification!