I would like to get the data that exists in RT Custom Values → Values → Description.
When I use this code (6 being the id of the custom field I am working with), I get a list of the “Values” which lists the “Name” part of the Value, is there a way to retrieve the “Description” part of the Value?
$avar = "https://myrt.url/REST/2.0/customfield/6/"; curl_setopt($ch, CURLOPT_URL, $avar); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch); echo "<pre>"; var_dump($result); echo "</pre>"; curl_close ($ch);
The output looks like this (just showing the relevant part):
“Values” : [
Those “Values” are the “Name” part of the Custom Field. I need the “Description” part of the Custom field.
For example, in RT when I look at the Custom Field I see something like this:
Sort. Name Description
0 none No Value Chosen Yet
abbott Abbott Hall
I would like my code to return the description: Abbott Hall, rather than the name: abbott.
I don’t need the exact PHP code for this, just a general sense of how to get all the Descriptions for my Custom Field rather than all the Names.
Thanks for any help you can give with this.