Adding Approve/Reject button to the ticket itself

joaof
Mega Expert

Hi all,

There's a need of adding Approve/Reject buttons to the actual tickets (Change, REQ, RITM, Incident, etc).
This should work just like Approval form. (Buttons should be visible just by approvers.)

Is this possible to be done?

Thank you very much for your help.

1 ACCEPTED SOLUTION

joaof
Mega Expert

Found the solution here:

https://community.servicenow.com/community?id=community_question&sys_id=a5f887a1db5cdbc01dcaf3231f9619a0

View solution in original post

4 REPLIES 4

ServiceNow SA
Kilo Guru

Yes it is possible. You can check the existing UI Actions and replicate the same for the required tables.

I have replicated all 11 UI Actions from Approval table to RITM table and didn't work.

Maybe because Approval table access fields/variables directly and RITM doesn't.

Example of UI Action:
Table: Approval
Condition: current.state == 'requested'
Script:
current.state='approved';
current.update();

Table: Requested Item
Condition: current.state == 'requested'
Script:
current.state='approved';
current.update();

Thanks

joaof
Mega Expert

Up.
Still not working. 😞

joaof
Mega Expert

Found the solution here:

https://community.servicenow.com/community?id=community_question&sys_id=a5f887a1db5cdbc01dcaf3231f9619a0