Getting a error message 'getMyAssignments undefined, maybe missing global qualifier'

Prakyath
Tera Contributor

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. 

Prakyath_0-1689332526914.png

 

below screenshots is what is in the UI action

Prakyath_1-1689332607966.png

 

problem here is that , this error is visible only from the workspace.

please do let me know if anyone has come across this issue.

 

13 REPLIES 13

Tushar
Kilo Sage
Kilo Sage

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 -

  1. 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.

  2. 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

Hemanth M1
Giga Sage
Giga Sage

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  

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

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'

Ok, let me try to reproduce this in my PDI and get back to you

 

you have created a custom UI action "Analyze" right???

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025