Variable to be visible only in 1 task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 11:53 AM
Hello All,
I have a requirement to show 2 variables in task level but not on RITM and Form level.
For this I have made the variables as Global True and written a UI policy to hide these on form and RITM level.
So this works well and these are visible on task level. But I want this to be visible on only 1 task but not on all tasks of RITM, which is not happening and these are visible in all tasks of the RITM.
Please let me know how can I achieve this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 12:42 PM
Hi,
If you deselect the Global attibute on the variable, you can specify on which tasks the variable should be available on.
From the Docs:
"
Global | If selected, the variable is available for all catalog tasks within service catalog workflows or execution plans by default. If deselected, the variable must be associated with individual catalog tasks. |
"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2024 12:42 AM
Hi OIaN,
Thanks for your answer. can you please let me know how can specify on which tasks the variables should be available after deselecting global checkbox. Is is via client script on sc_task??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2024 12:49 AM
Hi,
Link has options available. In case, the first link does not work you can try looking for catalog task activity in workflow editor and then add required variable from the slushbucket.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2024 04:32 AM
Like @Jaspal Singh already stated, you need to either define which variables should be available.
In Flow Designer, you select variables when creating the Catalog task.
In Workflow Editor, you select variables when creating the Catalog task.
(see example images below)