Post upgrade Australia Regression Catalog Task Variables set to read only when saved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi everyone we had an incident post upgrade to Australia version, We created a variables catalog tasks that are visible only when Assigned to a member of Assignment group (customization), the normal behavior was we fulfill the variables if we save we can still make changes to them but now with Australia when we save those variables became read only we dont know why we checked the client script there is one read only fo variables editor but that script is deactivated so thats not the source of this behavior, is anyone had this problem or had an idea of whats happening
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I had a similar issue but not because of the upgrade, so a few places to check, roughly in order of likelihood:
- Your customisation itself. Since the variables only show when the task is assigned to a member of the assignment group, check how that’s done (client script, UI policy, GlideAjax or a UI macro). If the logic runs again after save and the condition evaluates differently, for example because the save changes the state, assignment or a field it depends on, it may be hiding the variables from editing rather than hiding them completely. Try saving without changing anything else and see if it still happens.
- Skipped records from the upgrade. If any part of the customisation modified an out-of-the-box record (the variable editor formatter or macro, an sc_task client script or a UI policy), the upgrade will have either skipped it or replaced it. Check Upgrade History, filter skipped records for Service Catalog and sc_task, and review anything related to the variable editor.
- Variable Editor read-only scripts. Besides client scripts, the variable editor has its own read-only scripts that can have conditions. Check whether any are active and whether their conditions match your tasks after a save, for example on state or “active”.
- Write roles on the variables. Each variable has Write Roles. If the user doesn’t have one of them, the variable is read-only in the variable editor. Check whether the variables (or a variable set) have write roles the fulfillers don’t hold.
- Other scripts and policies. Deactivating the one read-only client script was the right first step. Also check catalog UI policies with “Applies on Catalog Tasks”, onLoad client scripts on sc_task that call setVariablesReadOnly or setReadOnly on variables, and any onChange scripts that may run on load.
The quickest way to narrow it down is the Service Catalog variable debugger (Debug a Service Catalog variable in the docs). It shows each catalog client script, UI policy and data lookup that changes a variable’s state, so you can see exactly what sets it to read-only after save. Comparing the same task on a non-upgraded instance, if you still have one, is also a quick check.
If none of these explain it, I’d raise a case with Now Support with a sample task and steps to reproduce, since it could be a regression in the release.