Skip to main content
Question

Wrong/missing custom fields in API call


Janne01110
Apprentice
Forum|alt.badge.img

When I call the /api/v2/tickets/<id> I do get back a field called custom_fields but they are not what I expect for that ticket type, any ideas what I’m doing wrong?

Did this topic help you find an answer to your question?

3 replies

Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
Janne01110 wrote:

When I call the /api/v2/tickets/<id> I do get back a field called custom_fields but they are not what I expect for that ticket type, any ideas what I’m doing wrong?

It should give back all of the custom fields. Do you use workspaces? 
Keep in minde you see ticket form fields you see. 


Janne01110
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 1 reply
  • December 19, 2023

ah right it was custom fields on the service item (so visible via api/v2/tickets/<id>/requested_items


Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
Janne01110 wrote:

ah right it was custom fields on the service item (so visible via api/v2/tickets/<id>/requested_items

Yes to see SI fields you need to use the endpoint for SI. 


Reply