Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 2

Getting a Single Project Column in GraphQL

Is it possible to get all of the information about a single column in a project via GraphQL?  Right now, it looks like I am only able to get the entire list of columns (example below).

 

{
  repository(owner: "microsoft" name:"calculator"){
    project(number:1){
      name
      number
      columns(first:4){
        edges{
          cursor
          node{
            name
          }
        }
      }
    }
  }
}

A workaround I have found is to hold onto the cursor associated with each column and request:

columns(first:1, before:"<next columns cursor>")

 

I would consider this a less than ideal solution because I'm not sure of the permanence of of the cursor value.

I'm looking for the ability to form a request similar to the one below:

{
  repository(owner: "microsoft" name:"calculator"){
    project(number:1){
      name
      number
      column(databaseID:<id>){
            name
        }
      }
    }
  }
}
1 Reply
Highlighted
Community Manager
Message 2 of 2

Re: Getting a Single Project Column in GraphQL

Hi @benjaminwinokur,

 

Thanks a lot for being here! I can't think of any obvious way to significantly improve your method. I'll pass this feedback along to our team for more clarification and post any updates here.

 

Best,


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!