How to get approvers name on SCT task and also Short and Detailed description on REQ.

Ritu2
Tera Contributor

Hi all, 
I have created below workflow for a Catalogue task .

one variable only - requested for
After submitting the Req from Portal- a REQ is generated - which creates RITM 
RITM need line manager approval - and then approval from security team.
Once everything is approved a SCT task is created and assigned to Security team.

find_real_file.pngCurrently I can see the approver info on the RITM form only , is there any way I can see that info on SCT task as well.

find_real_file.png


Also Where should I define Short and Detailed description for the REQ , currently it is empty and I want it to same as SCT task/service catalogue.

1 ACCEPTED SOLUTION

Hi Ritu,

Steps on how to show Approvers related list on SC Task form

1) Left nav type relationships

2) Create new

3) Give some name

4) Applies to Table - sc_task

5) Queries from Table - sysapproval_approver

5) then use this script

(function refineQuery(current, parent) {

    // Add your code here, such as current.addQuery(field, value);
    
    current.addQuery('sysapproval', parent.request_item);

})(current, parent);

6) then save

7) now go on Catatog Task form

😎 Configure related lists

9) search this and add and save

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

Output:

RITM Approval:

find_real_file.png

Catalog Task Approval: Showing the same details on SC Task Form

find_real_file.png

Regards
Ankur

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

You cannot see the Approver details directly on SC Task form.

You will have to create defined relationship between SC Task and Approval table and then Add it as related list on SC Task form

you can have the script to update the Short description and Detailed description of REQ in the catalog task activity advanced section

var req = new GlideRecord('sc_request');

req.get(current.request);

req.short_description = ''; // your short description you want to give

req.description = ''; // your description you want to give

req.update();

Regards
Ankur

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

Hi Ritu,

Steps on how to show Approvers related list on SC Task form

1) Left nav type relationships

2) Create new

3) Give some name

4) Applies to Table - sc_task

5) Queries from Table - sysapproval_approver

5) then use this script

(function refineQuery(current, parent) {

    // Add your code here, such as current.addQuery(field, value);
    
    current.addQuery('sysapproval', parent.request_item);

})(current, parent);

6) then save

7) now go on Catatog Task form

😎 Configure related lists

9) search this and add and save

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

Output:

RITM Approval:

find_real_file.png

Catalog Task Approval: Showing the same details on SC Task Form

find_real_file.png

Regards
Ankur

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

@Ritu 

Hope you are doing good.

Did my reply answer your question?

If so, please mark it correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

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