Skip to main content
Submitted

Add "Card Checklists" to the API

  • June 15, 2022
  • 6 replies
  • 323 views

Keto-Faster
Forum|alt.badge.img+1

The API is missing access to some of the objects in the card.

Specifically, I’d like the Card Checklists to be added. 

Card checklists are very useful - but we haven’t considered using them due to this limitation.

See the conversation here: 

 

6 replies

Danielle Diehl
Pipefy Staff

Thanks for you suggestion! I will submit it!


Danielle Diehl
Pipefy Staff
Updated idea statusNewSubmitted

Keto-Faster
Forum|alt.badge.img+1
  • Author
  • Inspiring
  • May 15, 2023

@genietim have you found an alternative to the above feature, to having checklists auto-created in pipefy?


genietim
Forum|alt.badge.img+12
  • Legend
  • May 15, 2023

Hi @Keto-Faster 

I personally am not using the checklists at all. But I guess one way would be to look into the API that Pipefy itself uses, often, that’s usable from outside as well.

For the checklist, the queries would be:

fetch("https://app.pipefy.com/graphql/core", {
"headers": {
"accept": "*/*",
"accept-language": "en-GB,en;q=0.9,en-US;q=0.8,de;q=0.7",
"content-type": "application/json, application/json"
},
"referrer": "https://app.pipefy.com/",
"referrerPolicy": "origin",
"body": "{\"operationName\":\"CreateChecklist\",\"variables\":{\"cardUuid\":\"5b96ae53-e3aa-4e26-9b58-e1fa05f19c0d\",\"title\":\"Checklist\"},\"query\":\"mutation CreateChecklist($cardUuid: ID!, $title: String!) {\\n createChecklist(input: {cardUuid: $cardUuid, title: $title}) {\\n id\\n title\\n hasItems\\n __typename\\n }\\n}\\n\"}",
"method": "POST",
"mode": "cors",
"credentials": "include"
});

to create the checklist and

fetch("https://app.pipefy.com/graphql/core", {
"headers": {
"accept": "*/*",
"accept-language": "en-GB,en;q=0.9,en-US;q=0.8,de;q=0.7",
"content-type": "application/json, application/json"
},
"referrer": "https://app.pipefy.com/",
"referrerPolicy": "origin",
"body": "{\"operationName\":\"CreateChecklistItem\",\"variables\":{\"checklistId\":\"300699749\",\"description\":\"Test Item 1\",\"checked\":false},\"query\":\"mutation CreateChecklistItem($checklistId: ID!, $description: String!, $checked: Boolean!) {\\n createChecklistItem(\\n input: {checklistId: $checklistId, description: $description, checked: $checked}\\n ) {\\n id\\n index\\n __typename\\n }\\n}\\n\"}",
"method": "POST",
"mode": "cors",
"credentials": "include"
});

to add an item to it.

No idea if that actually works though ;)


genietim
Forum|alt.badge.img+12
  • Legend
  • May 15, 2023

(you might need to add the Authorization header, and correct the checklistId and the cardUuid etc.)


Keto-Faster
Forum|alt.badge.img+1
  • Author
  • Inspiring
  • May 17, 2023

@genietim awesome - thanks for posting this. We’ll try to implement and I’ll post back here how it goes.