Filter not working in instance with Workspace

Had one of my developers reach out with issues where they could not get filters working on tickets. This is a new tenant with Workspaces implemented. Stood up a new tenant and validated that Filters are returning no results with curl, Postman, etc.

Below is testing with Powershell:
Get ALL tickets…note the ticket status is 2 but there is a workspace_id in the objects:

https://flycastpartners994.freshservice.com/api/v2/tickets?page=1&per_page=100
VERBOSE: Returning tickets property with count 3

subject          : Request for Andrea : Dell Monitor
group_id         : 
department_id    : 
category         : 
sub_category     : 
item_category    : 
requester_id     : 21001346422
responder_id     : 
due_by           : 12/20/2022 9:05:08 PM
fr_escalated     : False
deleted          : False
spam             : False
email_config_id  : 
fwd_emails       : {}
reply_cc_emails  : {}
cc_emails        : {}
is_escalated     : False
fr_due_by        : 12/19/2022 2:05:08 PM
id               : 3
priority         : 2
status           : 2
source           : 2
created_at       : 12/16/2022 3:05:08 PM
updated_at       : 12/16/2022 3:05:08 PM
requested_for_id : 21001346422
to_emails        : 
type             : Service Request
description      : 
description_text : 
custom_fields    : 
workspace_id     : 2

subject          : Request for Andrea : Logitech Wireless Mouse
group_id         : 
department_id    : 
category         : 
sub_category     : 
item_category    : 
requester_id     : 21001346422
responder_id     : 
due_by           : 12/20/2022 9:05:08 PM
fr_escalated     : False
deleted          : False
spam             : False
email_config_id  : 
fwd_emails       : {}
reply_cc_emails  : {}
cc_emails        : {}
is_escalated     : False
fr_due_by        : 12/19/2022 2:05:08 PM
id               : 2
priority         : 2
status           : 2
source           : 2
created_at       : 12/16/2022 3:05:08 PM
updated_at       : 12/16/2022 3:05:08 PM
requested_for_id : 21001346422
to_emails        : 
type             : Service Request
description      : 
description_text : 
custom_fields    : 
workspace_id     : 2

subject          : What’s wrong with my email?
group_id         : 
department_id    : 
category         : 
sub_category     : 
item_category    : 
requester_id     : 21001346422
responder_id     : 
due_by           : 12/28/2022 3:05:03 PM
fr_escalated     : False
deleted          : False
spam             : False
email_config_id  : 
fwd_emails       : {}
reply_cc_emails  : {}
cc_emails        : {}
is_escalated     : False
fr_due_by        : 12/20/2022 9:05:03 PM
id               : 1
priority         : 1
status           : 2
source           : 2
created_at       : 12/16/2022 3:05:03 PM
updated_at       : 12/16/2022 3:05:03 PM
requested_for_id : 21001346422
to_emails        : 
type             : Incident
description      : <div>Hi Team,<br/> <br/>I have been unable to send any emails since this morning. What’s going on?<br/><br/>Regards,<br/> Andrea </div>
description_text : Hi Team, I have been unable to send any emails since this morning. What’s going on? Regards, Andrea
custom_fields    : 
workspace_id     : 2

Attempt to filter on Status 2 on same instance:

PS C:\Users\rasim\Dropbox\GitHub\Powershell\Freshworks> Get-FreshServiceTicket -Filter "status:2" -

https://flycastpartners994.freshservice.com/api/v2/tickets/filter?query=%22status%3a2%22&page=1&per_page=100

VERBOSE: Returning tickets property with count 0

Change to another instance, run the same query:

PS C:\Users\rasim\Dropbox\GitHub\Powershell\Freshworks> Get-FreshServiceTicket -Filter "status:2" -Verbose
https://its-fine.freshservice.com/api/v2/tickets/filter?query=%22status%3a2%22&page=1&per_page=100
VERBOSE: Returning tickets property with count 5

subject          : Test Incident
group_id         : 
department_id    : 21000097763
category         : Hardware
sub_category     : Peripherals
item_category    : 
requester_id     : 21000418005
responder_id     : 21000418005
due_by           : 11/30/2022 8:17:56 PM
fr_escalated     : False
deleted          : False
spam             : False
email_config_id  : 
fwd_emails       : {}
reply_cc_emails  : {}
cc_emails        : {}
is_escalated     : True
fr_due_by        : 11/23/2022 5:17:56 PM
priority         : 1
source           : 4
status           : 2
created_at       : 11/17/2022 8:17:56 PM
updated_at       : 11/17/2022 8:18:40 PM
requested_for_id : 21000418005
to_emails        : 
id               : 5
type             : Incident
description      : <div style="font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif; font-size: 14px; "><div>Broken keyboard</div></div>
description_text : Broken keyboard

subject          : Where can I find more information about employee health benefits?
group_id         : 
department_id    : 
category         : 
sub_category     : 
item_category    : 
requester_id     : 21000418007
responder_id     : 
due_by           : 9/8/2022 2:17:57 PM
fr_escalated     : True
deleted          : False
spam             : False
email_config_id  : 
fwd_emails       : {}
reply_cc_emails  : {}
cc_emails        : {}
is_escalated     : True
fr_due_by        : 8/31/2022 8:17:57 PM
priority         : 1
source           : 2
status           : 2
created_at       : 8/29/2022 2:17:57 PM
updated_at       : 11/17/2022 8:08:21 PM
requested_for_id : 21000418007
to_emails        : 
id               : 4
type             : Incident
description      : Testing API set
description_text : Testing API set

subject          : Request for Andrea : Logitech Wireless Mouse
group_id         : 
department_id    : 
category         : 
sub_category     : 
item_category    : 
requester_id     : 21000418006
responder_id     : 
due_by           : 8/31/2022 8:17:53 PM
fr_escalated     : True
deleted          : False
spam             : False
email_config_id  : 
fwd_emails       : {}
reply_cc_emails  : {}
cc_emails        : {}
is_escalated     : True
fr_due_by        : 8/30/2022 1:17:53 PM
priority         : 2
source           : 2
status           : 2
created_at       : 8/29/2022 2:17:53 PM
updated_at       : 8/29/2022 2:17:53 PM
requested_for_id : 21000418006
to_emails        : 
id               : 2
type             : Service Request
description      : 
description_text : 

subject          : Request for Andrea : Dell Monitor
group_id         : 
department_id    : 
category         : 
sub_category     : 
item_category    : 
requester_id     : 21000418006
responder_id     : 
due_by           : 8/31/2022 8:17:53 PM
fr_escalated     : True
deleted          : False
spam             : False
email_config_id  : 
fwd_emails       : {}
reply_cc_emails  : {}
cc_emails        : {}
is_escalated     : True
fr_due_by        : 8/30/2022 1:17:53 PM
priority         : 2
source           : 2
status           : 2
created_at       : 8/29/2022 2:17:53 PM
updated_at       : 8/29/2022 2:17:53 PM
requested_for_id : 21000418006
to_emails        : 
id               : 3
type             : Service Request
description      : 
description_text : 

subject          : What’s wrong with my email?
group_id         : 
department_id    : 
category         : 
sub_category     : 
item_category    : 
requester_id     : 21000418006
responder_id     : 
due_by           : 9/8/2022 2:17:01 PM
fr_escalated     : True
deleted          : False
spam             : False
email_config_id  : 
fwd_emails       : {}
reply_cc_emails  : {}
cc_emails        : {}
is_escalated     : True
fr_due_by        : 8/31/2022 8:17:01 PM
priority         : 1
source           : 2
status           : 2
created_at       : 8/29/2022 2:17:01 PM
updated_at       : 8/29/2022 2:17:01 PM
requested_for_id : 21000418006
to_emails        : 
id               : 1
type             : Incident
description      : <div>Hi Team,<br/> <br/>I have been unable to send any emails since this morning. What’s going on?<br/><br/>Regards,<br/> Andrea </div>
description_text : Hi Team, I have been unable to send any emails since this morning. What’s going on? Regards, Andrea
1 Like

The assumption is that the workspace concept is new for teams using Freshservice. This should not ideally impact the API’s behavior. But I guess your example states it… it may be a bug.

I put you in touch with the freshservice team to discuss account specific details and hopefully, get this fixed.

If anyone is watching this thread, it was confirmed that this is an issue and is actively being worked. Support response below:

API changes for ESM are not ready yet. They will be pushed after Jan’s first week. As the changes are not ready yet. I am marking this ticket as resolved.

You can check for updates here: https://community.freshworks.com/product-updates?filters[productArea][0]=Freshservice

3 Likes

Thanks for sharing the updates back here @rasimm

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.