- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 02:11 AM
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
full-view
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 02:41 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 03:43 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 03:51 AM
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}}">
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 03:56 AM
Thanks a lot, Anurag!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 02:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 02:46 AM
Thanks for the reply, Goran - I'll have a look now and get back to you if I have any queries!
Regards.