ToDos
Retrieve ToDos on Basecamp.
テーブル固有の情報
Select
Basecamp において検索条件としてサポートされているカラムは以下のとおりです:
- ProjectId
- ToDoListId
- Id
- Completed
- Remaining
- Trashed
- DueAt
- DueOn
DueAt およびDueOn は'>' もしくは'>=' 演算子と共に使うことができます。
次のクエリは、あるProject に属する完了されたToDos のみを取得します。
SELECT * FROM ToDos WHERE ProjectId = '11111111' AND Completed = True
次のクエリは、ある日にちを基準に期限が来ているToDos のみをフィルタします。
SELECT * FROM ToDos WHERE ProjectId = '11111111' AND DueAt > '2016-01-01'
次のクエリは、Todo リストに属する残りのToDos をリストします。
SELECT * FROM ToDos WHERE ProjectId = '11111111' AND ToDoListId = '123456789' AND Remaining = true
Columns
| Name | Type | References | Description |
| Id [KEY] | String | The unique identifier of the topic. | |
| AppUrl | String | The app URL. | |
| AssigneeId | String | Id of the person assigned to. | |
| AssigneeName | String | Name of the person assigned to. | |
| AssigneeType | String | Type of assignee. | |
| CommentsCount | Integer | Number of comments on this to-do. | |
| Completed | Boolean | Whether the to-do is completed. | |
| Content | String | Description of the to-do. | |
| CreatedAt | Datetime | The date and time when the record was created. | |
| CreatorAvatarUrl | String | Creator Avatar URL. | |
| CreatorFullsizeAvatarUrl | String | Creator full-size avatar URL. | |
| CreatorId | String | The Id of the creator. | |
| CreatorName | String | The name of the creator. | |
| DueAt | Datetime | The date and time when the to-do is set due. | |
| DueOn | Datetime | The date and time when the to-do is set due. | |
| Position | Integer | Position number of the current to-do on the list. | |
| Private | Boolean | Whether this to-do is private. | |
| Remaining | Boolean | Boolean value for remaining to-dos. | |
| SubscribersId | String | The Id of the subscriber. | |
| SubscribersName | String | The name of the subscriber. | |
| ToDoList | String | To-do list. | |
| ToDoListId | String | The to-do list Id. | |
| Trashed | Boolean | Boolean value for deleted to-dos. | |
| UpdatedAt | Datetime | The date and time when the record was last updated. | |
| URL | String | The URL of the to-do. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description | |
| ProjectId | String | The Id of the Project associated with the to-do. |