UI Action to automatically open Project Workspace not working after upgrade to Xanadu

Adam Johnson2
Tera Contributor

Good afternoon community,
We are in the process of upgrading to Xanadu and we are having an issue with a UI Action we created that automatically takes team members into Project Workspace and to that project. 

This UI Action was working in Washington DC, but now it no longer works and it seems like something is overriding the URL regardless of how we try and set this.

Here is the code that was working and a screenshot of how it would take us to the specific Project in Project Workspace in Washington DC Environment.

function showProjectWorkspace() {
    var sysId = typeof rowSysId == 'undefined' ? gel('sys_uniqueValue').value : rowSysId;

    //var url = 'now/workspace/project/planner/pm_project/' + sysId + '/0';
    var url = 'now/workspace/project/home/sub/planning/pm_project' + '/' + sysId + '/' + new Date().valueOf() + '/params/page-name/planning';
    g_navigation.open(url);
}

AdamJohnson2_0-1729192208388.png


When we upgraded to Xanadu the functionality broke, but the URL for Projects in Project Workspace is the same.
I have tried updating the code and now have even hard-coded a project to try and open, but no matter what it takes me to the following URL: SNEnvironment/now/workspace/project/home/sub/planning 

From what I can tell the URL is constructing properly in the console log, but I cannot figure out why it won't open the record.

AdamJohnson2_1-1729192690813.png


Does anyone have any thoughts on this?
Thanks in advance


1 REPLY 1

_Nadia
Tera Contributor

Hi Adam Johnson2,  we just got the same issue after upgrade to Xanadu. Following helped: change API from g_navigation.open(url);  to    g_navigation.openPopup(url);