Do you need help with your API queries and/or mutation?
Here are a few that might help you!
Queries
SHOW PHASE
{
phase(id: XXX) {
id
name
cards_count
cards {
edges {
node {
id
title
}
}
}
fields {
id
}
}
}
SHOW ALL PHASES FROM PIPE
{
pipe(id:XXXXX){
phases{
id
name
cards_count
}
}
}
Mutations
CREATE PHASE
mutation {
createPhase(
input: {
pipe_id: XXXX
name: "First Phase"
done: false
lateness_time: 172800
description: "XXXXXXXXXX"
can_receive_card_directly_from_draft: true
}
) {
phase {
id
name
}
}
}
UPDATE PHASE
mutation {
updatePhase(
input: {
id: XXXXXXX
name: "New name"
done: true
description: "New phase description"
can_receive_card_directly_from_draft: false
}
) {
phase {
id
name
}
}
}
DELETE PHASE
mutation {
deletePhase( input: { id: XXXX }) {
success
}
}
CREATE PHASE FIELD
mutation {
createPhaseField(
input: {
phase_id: XXXXX
type: "radio_horizontal"
label: "Did you finish the task?"
options: t"Yes", "No"]
description: "XXXX"
required: true
editable: false
}
) {
phase_field {
id
label
}
}
}
UPDATE PHASE FIELD
mutation {
updatePhaseField(
input: {
id: "did_you_finish_the_task"
label: "Have you finished the task?"
options: :"Yep", "Nope"]
required: false
editable: true
}
) {
phase_field {
id
label
}
}
}
DELETE TE PHASE FIELD
mutation {
deletePhaseField(input: {id: "did_you_finish_the_task"}){
success
}
}