@@ -26,7 +26,7 @@ service Task {
2626 body : "*"
2727 };
2828 }
29- rpc change_status (TaskStatusRequest ) returns (TaskInfo ) {
29+ rpc change_status (TaskChangeStatusRequest ) returns (TaskInfo ) {
3030 option (google.api.http ) = {
3131 post : "/opsflow/v1/task/change_status"
3232 body : "*"
@@ -67,7 +67,7 @@ enum TaskPriority {
6767
6868message TaskCreateRequest {
6969 string name = 1 ;
70- string status = 2 ;
70+ string status_id = 2 ;
7171 // +optional
7272 TaskPriority priority = 3 ;
7373 // +optional
@@ -104,13 +104,11 @@ message TaskUpdateRequest {
104104 string project_id = 21 ;
105105}
106106
107- message TaskStatusRequest {
107+ message TaskChangeStatusRequest {
108108 string task_id = 1 ;
109- string status = 2 ;
109+ string status_id = 2 ;
110110 // +optional
111111 string assignee = 3 ;
112- // +optional
113- string comment = 4 ;
114112}
115113
116114message TaskRequest {
@@ -125,17 +123,17 @@ message TaskSearchQuery {
125123 // +optional
126124 string name = 3 ;
127125 // +optional
128- string status = 4 ;
126+ string status_id = 4 ;
129127 // +optional
130- spaceone.api.opsflow.v1.StatusType status_type = 5 ;
128+ string status_type = 5 ;
131129 // +optional
132130 TaskPriority priority = 6 ;
133131 // +optional
134132 string workspace_id = 11 ;
135133 // +optional
136134 string project_id = 12 ;
137135 // +optional
138- string task_category_id = 13 ;
136+ string category_id = 13 ;
139137 // +optional
140138 string task_type_id = 14 ;
141139}
@@ -144,16 +142,17 @@ message TaskInfo {
144142 string task_id = 1 ;
145143 string name = 2 ;
146144 string status = 3 ;
147- spaceone.api.opsflow.v1.StatusType status_type = 4 ;
145+ string status_type = 4 ;
148146 TaskPriority priority = 5 ;
149147 string description = 6 ;
150148 google.protobuf.Struct data = 7 ;
151149 repeated spaceone.api.file_manager.v1.FileInfo files = 8 ;
150+ string assignee = 9 ;
152151
153152 string domain_id = 21 ;
154153 string workspace_id = 22 ;
155154 string project_id = 23 ;
156- string task_category_id = 24 ;
155+ string category_id = 24 ;
157156 string task_type_id = 25 ;
158157
159158 string created_at = 31 ;
0 commit comments