Skip to main content

I'm having a problem executing the query "card(id: "2jw9V38Y") { title }". I'm getting the id of the card through the instance "window.PipefyApp.init().card()", this in the front-end, but this id doesn't seem valid for graphiql operations. If I copy the id contained in the browser's url (id only with numbers), the query returns the data correctly.

Hi @Tegrus how are you doing?
It seems you get the suid and you need to get the card id!

This is the query to get the card id:
{
  cards(pipe_id: 1178636) {
    edges {
      node {
        id
        title
        assignees {
          id
        }
    
      }
    }
  }
}

Let me know if I cant help with anything else!😉


Hi @Tegrus how are you doing?
It seems you get the suid and you need to get the card id!

This is the query to get the card id:
{
  cards(pipe_id: 1178636) {
    edges {
      node {
        id
        title
        assignees {
          id
        }
    
      }
    }
  }
}

Let me know if I cant help with anything else!😉

This doesn't solve the problem Lais 😞. I would like to use 'suid' to move a card from phase through graphiql calls, is this possible?


Hi @Tegrus: you will have to use more than one query. The first one shown by Laïs in order to find the actual card id from the suid, and the second one (a mutation) with the actual id to do the movement.

 

If iterating through the cards in the phase to find the one with the correct suid is too intensive, you can instead use e.g. the title of the card and search for that in the first query.


Reply