debian-mirror-gitlab/doc/api/graphql/sample_issue_boards.md

51 lines
1.6 KiB
Markdown
Raw Normal View History

2021-01-29 00:20:46 +05:30
---
2021-06-08 01:23:25 +05:30
stage: Plan
group: Project Management
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2021-01-29 00:20:46 +05:30
---
2021-09-30 23:02:18 +05:30
# Identify issue boards with GraphQL **(FREE)**
2020-10-24 23:57:45 +05:30
This page describes how you can use the GraphiQL explorer to identify
2021-09-30 23:02:18 +05:30
existing [issue boards](../../user/project/issue_board.md) in the `gitlab-docs` documentation repository.
2020-10-24 23:57:45 +05:30
## Set up the GraphiQL explorer
This procedure presents a substantive example that you can copy and paste into your own
instance of the [GraphiQL explorer](https://gitlab.com/-/graphql-explorer):
1. Copy the following code excerpt:
```graphql
query {
project(fullPath: "gitlab-org/gitlab-docs") {
name
forksCount
statistics {
wikiSize
}
issuesEnabled
boards {
nodes {
id
name
}
}
}
}
```
1. Open the [GraphiQL Explorer](https://gitlab.com/-/graphql-explorer) page.
1. Paste the `query` listed above into the left window of your GraphiQL explorer tool.
1. Click Play to get the result shown here:
![GraphiQL explorer search for boards](img/sample_issue_boards_v13_2.png)
If you want to view one of these boards, take one of the numeric identifiers shown in the output. From the screenshot, the first identifier is `105011`. Navigate to the following URL, which includes the identifier:
```markdown
https://gitlab.com/gitlab-org/gitlab-docs/-/boards/105011
```
For more information on each attribute, see the [GraphQL API Resources](reference/index.md).