[rt-users] rt-4.0.5 - How to populate a custom field using a web service?

Thomas Sibley trs at bestpractical.com
Tue Feb 7 09:26:58 EST 2012


On 02/06/2012 04:42 PM, Kevin Falcone wrote:
> This means that you can render content into an iframe using the value
> of the custom field.
> 
> If your user selected "Foo" from a custom field, RT can make a call to
> an external webservice with Foo and some other information and then
> iframe the data into Ticket/Display.html (assuming you don't violate
> any of the security restrictions on iframes).

Custom Fields which include content from a URL don't use an iframe; they
make an ajax request and insert the resulting HTML into the page.
Unlike the iframe approach, the ajax approach requires cross domain
policies to be in place if you're fetching a url on another domain.

To get around the cross-domain restriction, you can either write a shim
residing on the same host as RT that proxies the request/response, or
implement the cross-origin resource sharing headers
(http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing).

Thomas



More information about the rt-users mailing list