- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2020 12:00 AM
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.Currently 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.
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.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2020 12:17 AM
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
Output:
RITM Approval:
Catalog Task Approval: Showing the same details on SC Task Form
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2020 12:09 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2020 12:17 AM
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
Output:
RITM Approval:
Catalog Task Approval: Showing the same details on SC Task Form
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2020 02:45 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader