Make Variables on associated sc_task editable when RITM when RITM is Open

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2021 06:01 AM
HI Champs, Need your help. There is a requirement to make certain variables visible and editable on associated task for catalog item till the time the RITM is open. Once the RITM is closed, the variables on task should be read only. These variables should only be visible and editable on task and should not be visible on catalog Form /RITM. Tried using UI policy but not able to fetch this functionality completely. variables on task are still editable even after RITM is closed. Ideally no one should be able to edit those variables once associated RITM is closed/cancelled. Please help. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2021 12:54 AM
Hi,
So for making all variables readonly if RITM is Closed which script you are using?
Are you using the script I shared?
If yes then what is not working
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2021 09:38 PM
Hi Ankur, I am using your script only to make variable read only on RITM closure. The issue which I am facing is even when the RITM is not closed, the variable is getting into read only on REQTASK. how can i ensure that the variable is read only on REQTASK only when the RITM is closed and not when the RITM is in open state ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2021 09:50 PM
Hi,
So your client script is Applied on Requested Item or Applies on Catalog Task
Please share screenshot
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader