Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halkeye/4220bc8b0d204af4815d69dd5c9db204 to your computer and use it in GitHub Desktop.
Save halkeye/4220bc8b0d204af4815d69dd5c9db204 to your computer and use it in GitHub Desktop.

grabbing all the items in columns in a project

# Type queries into this side of the screen, and you will 
# see intelligent typeaheads aware of the current GraphQL type schema, 
# live syntax, and validation errors highlighted within the text.

# We'll get you started with a simple query showing your username!
query { 
  viewer { 
    login
  }
  organization(login:"jenkinsci") {
    project(number:3 ) {
      id
      columns (first:100) {
        edges {
          node {
            id
            cards {
              edges {
                node {
                  content {
                    ... on PullRequest {
                      title
                      url
                    }
                    __typename
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
---
{
  "data": {
    "viewer": {
      "login": "halkeye"
    },
    "organization": {
      "project": {
        "id": "MDc6UHJvamVjdDM3OTY1MTk=",
        "columns": {
          "edges": [
            {
              "node": {
                "id": "MDEzOlByb2plY3RDb2x1bW43NjY0MTg5",
                "cards": {
                  "edges": []
                }
              }
            },
            {
              "node": {
                "id": "MDEzOlByb2plY3RDb2x1bW43NjY0MTkw",
                "cards": {
                  "edges": [
                    {
                      "node": {
                        "content": {
                          "title": "Use GitHub as a source of plugin documentation",
                          "url": "https://github.com/jenkinsci/pipeline-github-lib-plugin/pull/5",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "[WEBSITE-637] Use GitHub as the source of documentation",
                          "url": "https://github.com/jenkinsci/jsch-plugin/pull/10",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Migrate docs from wiki to github",
                          "url": "https://github.com/jenkinsci/plain-credentials-plugin/pull/17",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "[JENKINS-59172] - Use GitHub as a source of the plugin's documentation on plugins.jenkins.io",
                          "url": "https://github.com/jenkinsci/rb-plugin/pull/1",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Docs migration",
                          "url": "https://github.com/jenkinsci/oic-auth-plugin/pull/86",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Docs migration",
                          "url": "https://github.com/jenkinsci/neoload-plugin/pull/12",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Fix GitHub URLs in pom.xml",
                          "url": "https://github.com/jenkinsci/ignore-committer-strategy-plugin/pull/5",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Doc changes",
                          "url": "https://github.com/jenkinsci/teamconcert-plugin/pull/17",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "move documentation from wiki to github",
                          "url": "https://github.com/jenkinsci/msbuild-plugin/pull/39",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "move docs to GitHub",
                          "url": "https://github.com/jenkinsci/ansible-plugin/pull/33",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Move documentation to github",
                          "url": "https://github.com/jenkinsci/support-core-plugin/pull/205",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Change urls for each plugin to point to GitHub",
                          "url": "https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/371",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Migrate docs from Wiki to GitHub",
                          "url": "https://github.com/jenkinsci/antisamy-markup-formatter-plugin/pull/16",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Documentation migration",
                          "url": "https://github.com/jenkinsci/github-plugin/pull/224",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Migrate docs from wiki to github",
                          "url": "https://github.com/jenkinsci/ldap-plugin/pull/38",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Use GitHub for plugins.jenkins.io docs",
                          "url": "https://github.com/jenkinsci/scm-api-plugin/pull/80",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "__typename": "Issue"
                        }
                      }
                    }
                  ]
                }
              }
            },
            {
              "node": {
                "id": "MDEzOlByb2plY3RDb2x1bW43NjY0MjE2",
                "cards": {
                  "edges": [
                    {
                      "node": {
                        "content": {
                          "title": "Documentation migration",
                          "url": "https://github.com/jenkinsci/gitlab-logo-plugin/pull/14",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Documentation migration",
                          "url": "https://github.com/jenkinsci/chatwork-plugin/pull/39",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Use GitHub as a source of plugin documentation",
                          "url": "https://github.com/jenkinsci/azure-vm-agents-plugin/pull/176",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Docs migration",
                          "url": "https://github.com/jenkinsci/debian-pbuilder-plugin/pull/4",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Documentation migration",
                          "url": "https://github.com/jenkinsci/maven-plugin/pull/130",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Use GitHub as a plugin documentation source",
                          "url": "https://github.com/jenkinsci/run-selector-plugin/pull/24",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Move from Confluence Wiki to GitHub README",
                          "url": "https://github.com/jenkinsci/chatter-notifier-plugin/pull/4",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "25824: Jenkins: migrate documentation to GH",
                          "url": "https://github.com/jenkinsci/plasticscm-plugin/pull/25",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Migrate to use GitHub README for plugin documentation",
                          "url": "https://github.com/jenkinsci/jms-messaging-plugin/pull/153",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Documentation and github url changes",
                          "url": "https://github.com/jenkinsci/zephyr-enterprise-test-management-plugin/pull/5",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "pom.xml: Use GitHub for plugin's documentation on plugins.jenkins.io",
                          "url": "https://github.com/jenkinsci/stashnotifier-plugin/pull/248",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Use GitHub as a source of the plugin's documentation on plugins.jenkins.io",
                          "url": "https://github.com/jenkinsci/text-finder-plugin/pull/48",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Add documentation URL (GitHub)",
                          "url": "https://github.com/jenkinsci/forensics-api-plugin/pull/58",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Use GitHub docs for plugins.jenkins.io",
                          "url": "https://github.com/jenkinsci/credentials-plugin/pull/128",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Use GitHub as source of documentation",
                          "url": "https://github.com/jenkinsci/aws-java-sdk-plugin/pull/77",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "[WEBSITE-637] Use GitHub as source of documentation",
                          "url": "https://github.com/jenkinsci/gitlab-oauth-plugin/pull/18",
                          "__typename": "PullRequest"
                        }
                      }
                    }
                  ]
                }
              }
            },
            {
              "node": {
                "id": "MDEzOlByb2plY3RDb2x1bW43NjY0MTkx",
                "cards": {
                  "edges": [
                    {
                      "node": {
                        "content": {
                          "title": "Move the plugin documentation from Wiki to GitHub",
                          "url": "https://github.com/jenkinsci/collapsing-console-sections-plugin/pull/19",
                          "__typename": "PullRequest"
                        }
                      }
                    },
                    {
                      "node": {
                        "content": {
                          "title": "Use GitHub as a source of documentation on plugins.jenkins.io",
                          "url": "https://github.com/jenkinsci/parameterized-trigger-plugin/pull/133",
                          "__typename": "PullRequest"
                        }
                      }
                    }
                  ]
                }
              }
            }
          ]
        }
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment