Creating a hyperlink to a RITM from within a SC Task

ethal
Kilo Contributor

We would like to create a hyperlink within a Service Catalog Task ticket which opens the related Request Item ticket. The hyperlink would display as the RITM number on the form. We are aware that we can simply click on the hover-over button next to the current RITM number field within the Task ticket, but our technology supervisor is persistent about getting a hyperlink instead. I created a hyperlink field within the Task form and placed the following lame code in the dictionary setting, of course without success:

https://www.service-now.com/lathamqa/nav_to.do?uri=sc_req_item.do?sys_id=request_item%26sysparm_view...

We would like the link to be dynamic, hyperlinking to whichever related RITM ticket the viewed Task as part of. Perhaps a business rule or client script is in order?

Any suggestions???

3 REPLIES 3

paul_murphy
Kilo Explorer

System UI -> UI Actions

Name: Request Item
Table: Catalog Task [sc_task]
Form Link: true
Script: action.setRedirectURL('sc_req_item.do?sys_id=' + current.request_item);


Perfecto! Thanks.


poornima2
Mega Expert

We would like to open the current Requsted Item in new window.The above URL is working fine,but it is opening in the same window.We want to open this in a new window.Thanks.