Access and assignment

The Catalog Item Variables are available and assigned to a specific Catalog Task activity (thereby to a specific task) using the slushbucket entry of a catalog task.

The user working the task enters the values of the variables.

To access the values of a Catalog Item Variable inside a script:
var gr  = current ; // or create and query a new GlideRecord 
var itemVariable  = gr. variables [ variableName  ] ; //access the service catalog variable identified by the variable name. 
var itemValue  = itemVariable. getGlideObject ( ). getValue ( ) ; 
var itemQuestion  = itemVariable. getGlideObject ( ). getQuestion ( ). getLabel ( ) ;