Solved

Error Doing Advavnced Search

  • 18 September 2020
  • 1 reply
  • 179 views

Userlevel 5

I am having an issue in which whenever I try to run and advanced search on allCards, I get an execution error. here is the query I am trying to run (pipeId and value have been changed)

 

{

allCards(pipeId: 1111111,

filter:{

field: "taskid",

operator: equal,

value: "1111"

})

{

edges{

node{

id

}

}

}

}

 

and the error I am receiving:

 

{

"data": {

"allCards": null

},

"errors": [

{

"code": 30000,

"locations": [

{

"column": 2,

"line": 1

}

],

"message": "Something went wrong",

"path": [

"allCards"

],

"type": "ExecutionError"

}

]

}

 

no matter which field or value i put in the advanced search filter, I get the same error. Does anyone know what I am doing wrong or of this is a known issue with the api?

icon

Best answer by lais_lot 21 September 2020, 17:02

View original

1 reply

Userlevel 4

Hello @Nigel O'connell ,

We do not make filters by field
One way to make a filter would be to create labels, so you could filter by their ids

One way to user the filter of field is like this:

 

{ allCards(pipeId: 1234567, first:5 filter: {field: "updated_at", operator: gte, value: "2020-04-02T00:00:00-00:00"}) {   edges {     node {       id       title     }   }   pageInfo {     hasNextPage     endCursor   } }

Reply