Details
Details
Summary
I'm having issues querying tasks that match a link custom field... But, the query returns all tasks, instead of only those that match.
I've tried changing it to text, but that didn't help. I tried using a bool field, and that works, but it's less than ideal because I embed some metadata in the link that I want to filter by.
My custom field
{ "trac-url": { "name": "Trac Ticket", "type": "link", "caption": "Linked Trac Ticket", "required": false, "search": true } }
Query
In conduit, I call maniphest.search with this
{ "custom.trac-url": [ "https://mysite.com/project/ticket/1" ] }
Response
And this is the response I get (I removed a bunch of fields that aren't relevant to this post)
{ "id": 3, "type": "TASK", "phid": "PHID-TASK-epbpnuvd3zxu7vwyqhm2", "fields": { "custom.trac-url": null }, "attachments": {} }, { "id": 2, "type": "TASK", "phid": "PHID-TASK-esxvhsvxvakkoxs3bt24", "fields": { "custom.trac-url": "https://mysite.com/project/ticket/1" }, "attachments": {} }, { "id": 1, "type": "TASK", "phid": "PHID-TASK-alt64cexbe5grodf4cvv", "fields": { "custom.trac-url": null }, "attachments": {} } ], "maps": {}, "query": { "queryKey": null }, "cursor": { "limit": 100, "after": null, "before": null, "order": null } }
It looks to me like Task 1 and 3 should be excluded from the result. Unless of course, I'm missing something...