Skip to main content
Question

Configuring Next Phases via API


jfernandes-trace

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?

4 replies

marcosmelo
Forum|alt.badge.img+18
  • Pipefy Legend
  • 1465 replies
  • July 17, 2024

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


jfernandes-trace

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.


marcosmelo
Forum|alt.badge.img+18
  • Pipefy Legend
  • 1465 replies
  • July 17, 2024

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

 


brancao-86
  • New Member
  • 1 reply
  • November 12, 2024

I have the same problem, I created the pipe and the phases by Pipefy API, when moving the cards I can only move them to the previous or next phase, I saw that through the application I can change the phase configuration and then I can move the card to any phase, but I was unable to replicate this configuration by API.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings