Getting a error message 'getMyAssignments undefined, maybe missing global qualifier'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 04:04 AM
Hello All,
I m facing an weird error message when i click on the 'UI Action' in the workspace issue page.
I'm trying to change a state and update the same in the workspace ui action.
i get the below error message.
below screenshots is what is in the UI action
problem here is that , this error is visible only from the workspace.
please do let me know if anyone has come across this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 05:12 AM
Hi there,
It mostly suggests that there might be an issue with the code or configuration of the UI action.
This error typically occurs when there is a reference to an undefined or missing function.
Please try looking with below steps -
Verify the existence and scope of the "getMyAssignments" function: Check if the "getMyAssignments" function is defined and accessible in the script associated with the UI action. Make sure it is declared and implemented correctly.
Check for any missing or incorrect global qualifiers: Ensure that any global qualifiers, such as "gs." or "current.", are correctly used before calling the "getMyAssignments" function. Double-check the syntax and ensure that the necessary objects or variables are properly referenced.
Mark as correct and helpful if it solved your query.
Regards,
Tushar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 05:25 AM
Hi @Prakyath ,
Can you try without any condition in the UI action condition field and did this action/condition copied from global??
refer: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0855773
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 05:34 AM
Hey @Hemanth M1 ,
I have tried that.. its not related to the condition. It happens when the mandatory fields in the form are not filled in the new state. mandatory fields like 'Issue manager' ,' Issue manager Group', 'assigned to'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 05:56 AM
Ok, let me try to reproduce this in my PDI and get back to you
you have created a custom UI action "Analyze" right???
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025