Hello All,
I currently have the below GraphQL query, which extracts all items in a board. It works for API version 2023-07, but that one is being deprecated. Note the board number in the example below is not a real board.
query {
boards(ids: 123456789) {
items(limit: 20, page: 1) {
name
column_values {
title
text
}
}
}
}
I am wondering if there is an equivalent GraphQL query that will pull all items from the board using the latest API version.
On another note, wondering if the new query could have the data structured a little differently.
The existing query returns the data like this:
{
"data": {
"boards": [
{
"items": [
{
"name": "Client_One",
"column_values": [
{
"title": "Board_Column_1",
"text": "10 Hours"
},
{
"title": "Board_Column_2",
"text": "Jon Doe"
},
{
"title": "Board_Column_3",
"text": "Sarah Jane"
}
etc...
Wondering if it’s possible to structure the JSON so that the column_text under each column title has its own brackets. Basically the column_text would get nested under each respective column title. The reasoning is if the column order gets changed, we can still refer to the column title rather than the order of the columns.
something like the below (although it’s not properly formattted)
{
"data": {
"boards": [
{
"items": [
{
"name": "Client_One",
"column_values": [
{
"title": "Board_Column_1",
["column_text": "10 Hours"]
},
{
"title": "Board_Column_2",
["column_text": "Jon Doe"]
},
{
"title": "Board_Column_3",
["column_text": "Sarah Jane"]
}
Thanks,
Chris