Issue to add Variable editor in child tasks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 09:48 AM
Hi everyone,
I'm trying to display the Variable Editor on the Change Task table in ServiceNow, similar to how it's shown on the Change Request table. The variables are defined on the parent Change Request via a catalog item or record producer, and I want those variables to be visible and editable from the associated Change Task.
I attempted to configure a UI Macro and Formatter to render the variable editor on the Change Task form, but I haven’t been able to get it working correctly. I suspect the issue might be with how the macro references the parent record or retrieves the catalog item.
Could anyone guide me on:
- How to properly configure the UI Macro for the Change Task table?
- Whether there’s a recommended way to display variables from the parent Change Request?
- Any alternative approaches to achieve this?
Any help or examples would be greatly appreciated!
Thanks in advance!
UI Macro:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 10:00 AM - edited 08-19-2025 10:01 AM
I won't recommend showing the variable editor on child task as agent can anyhow navigate to parent and see the variables in variable editor.
this link has solution
Variable editor on child task(other than catalog task)
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 10:19 AM - edited 08-19-2025 10:46 AM
Thanks for your response, @Ankur Bawiskar.
I’ve reviewed the documentation you shared, and I’m currently trying to configure the Variable Editor on my Change Task table. However, I’m unable to replicate the Variable Editor setup that exists on the Change Request table. I’m specifically having trouble configuring the UI Macro to work correctly with my task table.
Could you please guide me on how to properly reference the parent record and display its variables in the task form? Any insights or examples would be greatly appreciated!
Note: In my setup, the parent field on the Change Task table is referencing the Task table, not directly the Change Request table. Because of this, I'm having difficulty configuring the Variable Editor to display variables from the Change Request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 07:54 PM
It should work fine.
change_task table has the field change_request which holds CHG and not parent field.
So you should update code as this
catItemProducedGr.addQuery("record_key", current.change_request);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader