Skip to main content
Question

Wrong/missing custom fields in API call

  • December 19, 2023
  • 3 replies
  • 77 views

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?

3 replies

Daniel Söderlund
Top Contributor ⭐
Forum|alt.badge.img+14

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
  • 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
Top Contributor ⭐
Forum|alt.badge.img+14

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.