Skip to main content
Question

Configuring Next Phases via API

  • 17 July 2024
  • 3 replies
  • 60 views

I created a pipe using the GraphQL API, but when I try to move a card from one phase to another, the message "You cannot move the card to this phase" is displayed. I tried to find how to update the "next_phase_ids" field of a phase in the API but couldn't find it. Can this configuration only be done via the interface?

3 replies

Userlevel 7
Badge +18

Hi, @jfernandes-trace 

 

check if the permissions for your users are allowed for this Pipe, or if the phase movement configuration is enabled for cards to be moved from this phase to the next

Userlevel 1

Hello @marcosmelo 

The pipe was created with the following mutation:

mutation {
createPipe(input: {
name: "Name",
organization_id: "123",
members: [
{ role_name: "admin", user_id: "XXXX" }
],
start_form_fields: [
{
label: "Contract ID",
type_id: "short_text",
editable: false
required: true
}
],
phases: [
{ name: "Draft", done: false },
{ name: "Created", done: false },
{ name: "Canceled", done: true }
{ name: "Completed", done: true }
],
color: blue,
icon: "payable"
}) {
clientMutationId,
pipe {
id
phases {
name,
id
}
}
}
}

I am not able to move cards from draft to created; I can only change "Configure move cards". I want to perform all configurations via API so that if I need to recreate the pipe, I can do it quickly.

Userlevel 7
Badge +18

Hi, @jfernandes-trace 

right, but the problem may be in the configuration in the Pipe itself. See this article https://help.pipefy.com/en/articles/614653-moving-cards-through-the-pipe

 

Reply