API - searching for tickets with no person responsibility
Is there a way to use the TDWebApi/api/{appId}/tickets/search method to search for tickets with no person assignment, ResponsibleUid?
I thought you might be able to use null or leave it blank but I still get tickets that are assigned to people and have a ResponsibleUid in the ticket's response.
for example, my payload looks like: {"StatusIDs": [46386], "ResponsibleUids": null}
Asked by Nick Nunn
on Wed 7/5/23 4:54 PM
Last edited Wed 7/5/23 4:54 PM
Sign In to leave feedback or contribute an answer
Answer (1)
This answer has been marked as the accepted answer
Mark Sayers
Wed 7/5/23 4:56 PM
Nick,
I'm honestly not sure if that endpoint accepts a null search, just like you can't do it in the UI really. You can do it via a report though, and just use the endpoint to call a report with its results, and get it that way.
Sincerely,
Mark Sayers
Sr Support Consultant, CS
No feedback
Hi Mark, the report was my backup plan but I thought I could save some extra calls by using search since it contained all the ticket information I needed.
There is a "Only Person Unassigned" option in ticket search but I can't find a matching property in the API documentation. - Nick Nunn Thu 7/6/23 8:56 AM
There is a "Only Person Unassigned" option in ticket search but I can't find a matching property in the API documentation. - Nick Nunn Thu 7/6/23 8:56 AM
Hi Mark, I think I may have figured it out but didn't think to look into the AssignmentStatus property.
Also, It looks like the documentation is a bit off. I think it should read "false if only tickets not assigned to a user should be returned" instead of true twice. https://solutions.teamdynamix.com/TDWebApi/Home/member/TeamDynamix.Api.Tickets.TicketSearch.AssignmentStatus - Nick Nunn Thu 7/6/23 9:05 AM
Also, It looks like the documentation is a bit off. I think it should read "false if only tickets not assigned to a user should be returned" instead of true twice. https://solutions.teamdynamix.com/TDWebApi/Home/member/TeamDynamix.Api.Tickets.TicketSearch.AssignmentStatus - Nick Nunn Thu 7/6/23 9:05 AM
I reported that documentation page to have it looked in to for you.
- Mark Sayers
Thu 7/6/23 9:50 AM