Is there a way to show the variables from the Requested Item (RITM) on the SCTASK form in the itil view?

sterrell24
Mega Expert

Instead of having users drill up to the RITM level to view the variables of the request, we would like to show the RITM variables at the SCTASK level. Any recommendations on how to do this?

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

Hi Jeromy,



I think by managing with catalog ui policy you can restrict your variable visibility. there is an option Applies on Catalog Tasks ,Applies on Requested Items   etc????


if it's checked on applies on catalog tasks it will show the variable only at task level.


or you can also try with variable editor.



1.png




http://wiki.servicenow.com/index.php?title=Using_Service_Catalog_Variables#gsc.tab=0



Variables on Task FormA slush-bucket of optional Catalog variables to include. The variables here are displayed in the Catalog Task form in a field called Variable Editor. If no variables are defined in the field on the Catalog Task activity, the Variable Editor field in the Catalog Task form is not visible.

Please check the thread below.



catalog task variables only visible on the task ?


View solution in original post

9 REPLIES 9

Working in Istanbul instance it would appear you can do this.



Open your workflow and find the Catalog Task activity - then Open it:


Screen Shot 2017-08-08 at 9.15.58 PM.png



Scroll to the bottom where it shows Add variables. Add the variables you want:



Screen Shot 2017-08-09 at 9.47.17 AM.png


Is there a way to do this for custom tables (or just other than SC Task)?
The Activity doesn't seem to show for any tables other than SC task.



Use Case: Record Producers and Tasks



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Not that I'm aware of, but use the script of the record producer to push the details into the comments field. Something like:



var notes = "Details:\n";


      notes += "\nRequestor: " + producer.requestor.getDisplayValue();


      notes += "\nStart time: " + producer.start;


      notes += "\nStop time: " + producer.stop;


      notes += "\nAffected CI's: " + producer.monitoredNodeId.getDisplayValue();


      gr.comments = notes;


We are doing this into the Description field, hoping for a codeless OOB solution, but I don't think one exists.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

shivanipatel
ServiceNow Employee
ServiceNow Employee

Jeromy,



We are glad you took advantage of the ServiceNow Community to learn more and to get your questions answered. The Customer Experience Team is working hard to ensure that the Community experience is most optimal for our customers.



If you feel that your question was answered, we would greatly appreciate if you could mark the appropriate thread as "Correct Answer". This allows other customers to learn from your thread and improves the ServiceNow Community experience.



If you are viewing this from the Community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thanks,


Shivani Patel


Unknown-1.png