Solved

Search cards by a customized field

  • 28 August 2020
  • 1 reply
  • 437 views

Userlevel 1

Hello!

I´m new on the community and I want to know if I can search cards via API using my customized field.

I added a “Document Number” field, so I need to get the lead information based on the document number the person is going to inform.

 

Is that possible?

 

Thanks,

 

Keyla

icon

Best answer by Luan de Araujo 1 September 2020, 14:52

View original

1 reply

Userlevel 2
Badge

Hi Keyla

 

How are you doing today?

 

Unfortunately, filtering data inside API is not possible. You’ll need to get all card’s data and then filter it using your application code.

 

You can get all card’s data using the following API syntax:

{

  card(id: <CARD ID HERE>) {

    title

    assignees {

      id

    }

    comments {

      text

    }

    comments_count

    current_phase {

      name

    }

    done

    due_date

    fields {

      name

      value

    }

    labels {

      name

    }

    phases_history {

      phase {

      name

    }

      firstTimeIn

      lastTimeOut

    }

    url

  }

}

 

If there’s any additional question, don’t hesitate to contact us :grinning:  

Reply