- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2023 02:15 PM - edited 05-31-2023 02:37 PM
Hey Mark,
For Incidents, requests and tasks, it works fine. Only for Universal Requests, works for one user (no role) but doesn't work for other users (with ITIL role).
I've added that topic block here in the "Check Ticket Status", duplicated out of the OOTB template as well. The OOTB only has Incident and Requests, I've added SCTASK to it. Those works fine.
You may refer to the OOTB topic Track Universal Request (template), I didn't modify it, the only change done in the duplicated topic was to make it a topic block to add above.
Think I'm getting close, in this part (below):
The "Set table" was missing some code to pass the Universal Request, like below, I've added:
else if (vaVars.table_name = 'universal_request')
vaVars.count = vaVars.unireq_count;
(function execute() {
vaVars.table_name = vaInputs.incident_or_requested_item;
if (vaVars.table_name == 'incident')
vaVars.count = vaVars.incident_count;
else if (vaVars.table_name == 'sc_req_item')
vaVars.count = vaVars.requested_item_count;
else if (vaVars.table_name = 'universal_request')
vaVars.count = vaVars.unireq_count;
else
vaVars.count = vaVars.scTask_count;
})()Now is working, but it kinda duplicated because of the topic block...
I'll post an update if make it work 100%.
Thanks,