Using REST api to find the contents of a custom field by RT number

Hey, all. I’m using the REST API and RequestTracker.php functions to create an external page that needs to grab some info from RT.

I found that I can use /REST/1.0/search/ticket?query=‘CF.{Custom Field Name}’=‘Custom field content’ to find ticket numbers that associate with Custom Field Content.

But I’d like to be able to find that custom field info by RT number. So I’d like to put in an RT number, and return what the ticket has for that specified custom field. For example my custom field is called “Local Hostname”. How would I return “Local Hostname” for a specified RT number?

Thanks for the help. :slight_smile: