Solved

Extract moved event from the card

  • 25 May 2023
  • 1 reply
  • 108 views

Userlevel 1
Badge

Hello,


Please, could someone tell me if the Pipefy API can extract moved event data from a card and get the current phase?

Example:

The user moved from Phase 1 to Phase 2;
The user moved from  Phase 2 to Phase 3

I need to have the life of the card and current phase, entrances and exits of the phases in an accumulative way.

Example:
The user moved from Phase 2 to Phase 3 at 21:00
The user moved from Phase 3 to Phase 2(again); 21:30
And so on ...

icon

Best answer by natalia-manffre 30 May 2023, 17:22

View original

1 reply

Userlevel 6
Badge

Activities only by the card on the front or by Report Request that we extract from the database. In addition to that, I imagine that this query below can help you. With it, you have the information of card creation, the current phase, and when the card entered this current phase:

{
  card(id:XXXXXXX){
    title
     createdAt
      started_current_phase_at
       
    current_phase {
      id
      name
      
    }
    current_phase_age
    finished_at
  }
}


That is the query results:
 

Reply