Open From in new tab instead of new sub tab in Agent Workspace

Shivam Saxena1
Mega Expert

Hello,

 

I have an UI Action 'Clone Incident' in Agent Workspace. So when I click on it, it will copy the present incident and create a new one.

 

Requirement:

Right now when I am clicking on 'Clone Incident' UI Action then the incident ticket will get copied and new incident will get created. But the new incident gets opened in new sub-tab instead of new tab in Agent Workspace.

 

Opening in sub-tab.

find_real_file.png

 

Want it to open in main tab.

 

find_real_file.png

 

My script in UI Action :

 

find_real_file.png

find_real_file.png

 

Can anyone please help here?

 

Thanks.

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you are using server side so this is not possible.

move the code to workspace client script and refer below line

top.window.open('URL','blank');

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Shivam Saxena 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

I have raised the HICASE for this issue. I will let you know the update.

 

Thanks.

AaronO
Tera Contributor

Hello, I have the exact same issue. Thought I had a solution, but it didn't work.  

Potential is to use Declarative Actions instead of UI Actions.