Discussions
Query and create discussions in a space.
Select
connector は Garoon API を使用して、以下のカラムと演算子で構築されたWHERE 句条件を処理します。その他のフィルタはクライアント側でconnector 内部で処理されます。
- SpaceId は '=' 演算子をサポートし、クエリの実行に必須です。
例えば、次のクエリはサーバー側で処理されます。
SELECT * FROM Discussions WHERE SpaceId = 3
Insert
Discussion を追加するには、SpaceId と Title フィールドを指定する必要があります。
INSERT INTO Discussions (SpaceId, Title) VALUES (3, 'New Discussion')
本文を含む Discussion:
INSERT INTO Discussions (SpaceId, Title, Body) VALUES (3, 'New Discussion', 'This is the body of the discussion.')
HTML 本文を含む Discussion:
INSERT INTO Discussions (SpaceId, Title, Body, IsHtmlBody) VALUES (3, 'HTML Discussion', 'This is HTML body', true)
Columns
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
ID of the discussion. |
| SpaceId | String | False |
ID of the space. |
| Title | String | False |
Title of the discussion. |
| Body | String | False |
Body of the discussion. |
| IsHtmlBody | Boolean | False |
Whether body is HTML format. |
| CreatedAt | Datetime | True |
Creation date and time. |
| CreatorId | String | True |
Creator's Garoon user ID. |
| CreatorCode | String | True |
Creator's login name. |
| CreatorName | String | True |
Creator's display name. |
| UpdatedAt | Datetime | True |
Update date and time. |
| UpdaterId | String | True |
Updater's Garoon user ID. |
| UpdaterCode | String | True |
Updater's login name. |
| UpdaterName | String | True |
Updater's display name. |