The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Service Portal request/incident URL

VJ4
Giga Expert

Hello,

In Service Portal, when you click on a incident/request it takes you to the new 'Ticket Form' (ticket-view)page. On this page, the right hand panel contains details of the request/incident. Currently, the incident/request number is just text and I've been asked to link this to the original ticket (full-view). I've edited the widget to include a hyperlink but I'm not sure how to construct the URL format to go the correct page (full-view).

Any ideas?

Thanks in advance.

ticket-view

ticket-view.jpg

full-view

full-view.jpg

1 ACCEPTED SOLUTION

Hey Viraj,



Try this:


<a href="sp?id=form&table=incident&sys_id={{data.sys_id}}">



Let me know if this works and mark helpful/correct accordingly.


View solution in original post

9 REPLIES 9

Hi Anurag,



Can I bother you once again and ask how do I structure the URL to include not only incidents but requests as well please?



Thanks!


Sure, that would be the same. Just add data.table. {{}} is used to call something from Server Script.



<a href="sp?id=form&table={{data.table}}&sys_id={{data.sys_id}}">


Thanks a lot, Anurag!!


Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Hi,



you got the URL that you want to use on the full-view. If you want to see how to build the URL I would recommend to look at other widgets that has that functionality. For example take a look at the simple list widget, which gives you a list over tickets which you can click on to get to the ticket.


You can find it here: https://YOUR_INSTANCE.service-now.com/sp_config?id=widget_editor&sys_id=5b255672cb03020000f8d856634c...



If you have more questions after looking into that. just let me know



//Göran


Thanks for the reply, Goran - I'll have a look now and get back to you if I have any queries!



Regards.