Hello everyone. How can i filter phases by name?
I don't know either. Here's what I'm trying:{
allCards(pipeId: 123, filter: {field: "current_phase", operator: equal, value: "456"}) {
edges {
node {
id
title
current_phase {
id
}
}
}
}
}
But it says: Something went wrong :-(Any help would be much appreciated.
Solved
Filter phases by name in Pipefy
Best answer by Marcos Carvalho
Hi there! Currently, our API only supports searching by the card's title, label, assignee, or when it was last updated. Here's an example of a search that involves the first three mentioned:
{
cards(pipe_id: 1, search: {assignee_ids: [1, 2, 3], label_ids: [4, 5, 6], title: "abc"}) {
edges {
node {
id
}
}
}
}
And here's a query that filters a card based the date it was last updated:
{
allCards(pipeId: 11111, first: 5, filter: {field: "updated_at", operator: gte, value: "2020-04-02T00:00:00-00:00", AND: [{field: "updated_at", operator: lte, value: "2020-04-03T00:00:00-00:00"}]}) {
edges {
node {
id
title
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Join us in the Pipefy Community! 🚀
No account yet? Create an account
Login with your Pipefy credentials
or
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.