Skip to main content

project_views

Creates, updates, deletes, gets or lists a project_views resource.

Overview

Nameproject_views
TypeResource
Idgithub.projects.project_views

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_view_for_orginsertorg, project_number, name, layoutCreate a new view in an organization-owned project. Views allow you to customize how items in a project are displayed and filtered.
create_view_for_userinsertuser_id, project_number, name, layoutCreate a new view in a user-owned project. Views allow you to customize how items in a project are displayed and filtered.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.
project_numberintegerThe project's number.
user_idstringThe unique identifier of the user.

INSERT examples

Create a new view in an organization-owned project. Views allow you to customize how items in a project are displayed and filtered.

INSERT INTO github.projects.project_views (
name,
layout,
filter,
visible_fields,
org,
project_number
)
SELECT
'{{ name }}' /* required */,
'{{ layout }}' /* required */,
'{{ filter }}',
'{{ visible_fields }}',
'{{ org }}',
'{{ project_number }}'
RETURNING
id,
name,
node_id,
created_at,
creator,
filter,
group_by,
html_url,
layout,
number,
project_url,
sort_by,
updated_at,
vertical_group_by,
visible_fields
;