The field name value of Type
in Ticket Fields API(/api/v2/ticket_fields) is ticket_type
where as in the actual ticket API(/api/v2/tickets/<ticket_id>) the field is just type
. PFB screenshots.
Because of this we cannot perform dynamic handling of fields based on Ticket Fields API for this field. We have to maintain a reference ticket_type → type in code.
May I know why is this difference?