Talk:REST/@comment-84.88.66.194-20140407152544/@comment-82.198.197.57-20140519100400

From Request Tracker Wiki
Revision as of 05:04, 19 May 2014 by 82.198.197.57 (talk) (Created page with "First, the custom field must be created inside RT, the REST API does not create new custom fields. It only fills existing ones. Second, the prefix CF- seems to be wrong. Try ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

First, the custom field must be created inside RT, the REST API does not create new custom fields. It only fills existing ones.

Second, the prefix CF- seems to be wrong. Try using CF.{FieldName}, that works for me (I'm using Java). So in PHP this should be:

$content = array( "CF.{admin-keywords}" => "Keyword name" );

If you request info about a ticket, the custom fields are written like this instead of the documented CF- prefix.