- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 03:57 AM
I have a requirement in catalog item that for ITIL role users while filling form some fields will be mandatory and while the end user is getting created the same variable should be non-mandatory in catalog itm.how to resolve this requirement.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 04:40 AM
Hi @sainath reddy ,
please use following script(when to run) in catalog ui policy.
if(gs.hasRole('resolver')){
return true;
}
plz mark helpful if satisfied with the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 04:03 AM
Hi Ankur, Can you help me in this requirement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 04:09 AM
Hi @sainath reddy ,
You can create catalog ui policy.
Mark my answer correct and helpful if helps you.
Thanks,
Nivedita Patil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 04:20 AM
May I know what is the condition it should be having for end user/ITIL user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 04:16 AM
Hi @sainath reddy ,
You can add condition with catelog UI policy script section in which you can differentiate Itil user and end user with specific role.
e.g. gs.hasRole("roleName");
if script throws true then only added UI actions (fields will be mandatory) will executes.
plz marks as helpful, if you goes little bit towards the solution.