Deprecation of the Groups field Items

Hi

I am doing some work in the dev playground and am getting a circular error. If I try this query:

{ 
  boards(ids: 4036050693) { 
    groups (ids:"Q3 2023 Engineering Squads") { 
      title 
      id
      items {
        id
        name
      }
     
    } 
  } 
}

I get an error response indicating it is a deprecated field. (Which we were told was going to happen)

 "extensions": {
    "warnings": [
      {
        "message": "Replaced by Group.items_page in 2023-10",
        "locations": [
          {
            "line": 6,
            "column": 7
          }
        ],

However, when I change the query to this:

{ 
  boards(ids: 4036050693) { 
    groups (ids:"Q3 2023 Engineering Squads") { 
      title 
      id
      items_page {
        id
        name
      }
     
    } 
  } 
} 

I get an error message that reads the items_page is not available for this version of the API.

{
  "errors": [
    {
      "message": "Field 'items_page' doesn't exist on type 'Group'",
      "locations": [
        {
          "line": 6,
          "column": 7
        }

Per the docs here, items_page should be available as a field under Groups

Did your dev team put out the deprecated field check before you switched the API over to the right version or am I doing something wrong?

You can set the API version in the API playground. If younset it to 2023-10 the items_page filed exists.

2 Likes

Hello there @KargoTechComms,

As @basdebruin well mentioned, you need to use the latest API version for that.

Please try changing the version and using a query like this one:

{
  boards(ids: 1234567890) {
    groups(ids: "topics") {
      title
      id
      items_page {
        items{
          id
          name
        }
      }
    }
  }
}

Please take into account that it looks like you were trying to pass a group’s name as its ID and what you need is the group’s ID.

You can get the IDs of your groups with a query like this one:

{
  boards(ids: 1234567890) {
    groups {
      title
      id
    }
  }
}

I hope that helps!

Cheers,
Matias

1 Like