ListOrganizationProjectFields lists Projects V2 for an organization. GitHub API docs: https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#list-project-fields-for-organization meta:operation GET /orgs/{org}/projectsV2/{project_number}/fields
(ctx context.Context, org string, projectNumber int, opts *ListProjectsOptions)
| 372 | // |
| 373 | //meta:operation GET /orgs/{org}/projectsV2/{project_number}/fields |
| 374 | func (s *ProjectsService) ListOrganizationProjectFields(ctx context.Context, org string, projectNumber int, opts *ListProjectsOptions) ([]*ProjectV2Field, *Response, error) { |
| 375 | u := fmt.Sprintf("orgs/%v/projectsV2/%v/fields", org, projectNumber) |
| 376 | u, err := addOptions(u, opts) |
| 377 | if err != nil { |
| 378 | return nil, nil, err |
| 379 | } |
| 380 | |
| 381 | req, err := s.client.NewRequest(ctx, "GET", u, nil) |
| 382 | if err != nil { |
| 383 | return nil, nil, err |
| 384 | } |
| 385 | |
| 386 | var fields []*ProjectV2Field |
| 387 | resp, err := s.client.Do(req, &fields) |
| 388 | if err != nil { |
| 389 | return nil, resp, err |
| 390 | } |
| 391 | |
| 392 | return fields, resp, nil |
| 393 | } |
| 394 | |
| 395 | // ListUserProjectFields lists Projects V2 for a user. |
| 396 | // |