- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 05:42 AM
Hello Team ,
I want to restrict the UI action to few catalog items , for which I have created a sys property and I am referencing the sys property in UI action , but that does not seams to work , cloud you please help me where am I going wrong
Here is what I have used
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 12:41 PM
Hi @soumyadaggula,
If it's a comma-separated list, try the following script:
current.assigned_to == gs.getUserID() && gs.getUser().isMemberOf(current.assignment_group) && gs.getProperty('sc.task.create').contains(current.request_item.cat_item)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 06:15 AM
Hi @soumyadaggula ,
Can you please try like this
gs.getProperty('sc.task.create').indexOf(current.request_item.cat_item)
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 06:29 AM
Hello @Community Alums
I tried
current.assigned_to == gs.getUserID()&&gs.getUser().isMemberOf(current.assignment_group)&&gs.getProperty('sc.task.create').indexOf(current.request_item.cat_item)
still does not seam to work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 09:52 AM
Hi @soumyadaggula ,
Can you please check that the value in your system property i.e., sc.task.create contains the value of current.request_item.cat_item.
Can you please try like that once. May be this will work.
if(gs.getProperty('sc.task.create').indexOf(current.request_item.cat_item)>= 1)
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 01:41 PM
Hi @soumyadaggula,
What value does the property 'sc.task.create' store?
I am assuming it's a single sys_id of a catalog item?
Cheers