> ## Documentation Index > Fetch the complete documentation index at: https://support.keypro.fi/llms.txt > Use this file to discover all available pages before exploring further. # Get list of Task Comments > Operation is used to get a list of Task Comments. Task Comments can be filtered by giving filtering parameters at HTTP querystring (see parameters). ## OpenAPI ````json GET /task-comments/ { "openapi": "3.0.4", "info": { "title": "KeyLight REST API", "termsOfService": "https://www.keypro.fi/en/terms-of-service", "contact": { "name": "Keypro Oy", "url": "https://keypro.fi/", "email": "keypro@keypro.fi" }, "license": { "name": "Copyright (C) Keypro Oy. All rights reserved.", "url": "https://www.keypro.fi/" }, "version": "2.0.0" }, "servers": [ { "url": "/api/v2" } ], "tags": [ { "name": "Plan", "description": "Plan related operations." }, { "name": "FreeArea", "description": "FreeArea related operations." }, { "name": "FreeLine", "description": "FreeLine related operations." }, { "name": "FreeText", "description": "FreeText related operations." }, { "name": "FreeTextComponent", "description": "FreeText component related operations." }, { "name": "Address", "description": "Building address related operations." }, { "name": "Apartment", "description": "Building apartments related operations." }, { "name": "Extra Attribute", "description": "Extra attributes related operations." }, { "name": "Extra Value", "description": "Extra attribute values related operations." }, { "name": "EAV Enum", "description": "EAV Enum value related operations." }, { "name": "EAV Enum Group", "description": "EAV Enum group related operations." }, { "name": "External Document", "description": "External documents related operations." }, { "name": "Attached Document", "description": "Attached Documents related operations." }, { "name": "Collections", "description": "Collection related operations." }, { "name": "Source system apartment", "description": "External source system derived apartment related operations." }, { "name": "Source system address", "description": "External source system derived address related operations." }, { "name": "Address alias", "description": "Address aliases related operations" }, { "name": "TxtConstant", "description": "TxtConstants related operations." }, { "name": "Point", "description": "Point objects related operations." }, { "name": "Survey Constant", "description": "Survey Constants related operations." }, { "name": "Survey Point", "description": "Survey Points related operations." }, { "name": "Survey Line String", "description": "Survey Line Strings related operations." }, { "name": "Template Catalog", "description": "Template Catalog related operations." }, { "name": "Route Following", "description": "Route following related operations." }, { "name": "Contact Person", "description": "Contact person related operations." }, { "name": "Contact Person Connection", "description": "Contact person connection related operations." }, { "name": "Electric Premises", "description": "Electric Premises related operations." }, { "name": "Electric Fuse", "description": "Fuse related operations." }, { "name": "Electric Splice", "description": "Electric Splice related operations." }, { "name": "Electric Manhole", "description": "Electric Manhole related operations." }, { "name": "Electric Point Object", "description": "Other electric point objects related operations." }, { "name": "Electric Pole", "description": "Electric Pole related operations." }, { "name": "Streetlight", "description": "Streetlight related operations." }, { "name": "Traffic Signal", "description": "Traffic signal related operations." }, { "name": "Electric Cable", "description": "Electric Cable related operations." }, { "name": "Electric Cable Connection", "description": "Operations related to connecting Electric Cables and Electric endpoints(Streetlights, Splices, Premises)." }, { "name": "Electric Conduit", "description": "Electric Conduit related operations." }, { "name": "Electric Conduit Link", "description": "Operations related to putting Electric Cables and Ducts into Conduits." }, { "name": "Electric Conduit Connection", "description": "Operations related to connecting Conduits and endpoints(Streetlights, Splices, Premises)." }, { "name": "Electric Duct", "description": "Electric Duct related operations." }, { "name": "Electric Duct Link", "description": "Operations related to putting Electric Cables into Ducts." }, { "name": "Electric Routefollower", "description": "Electric Routefollower related operations." }, { "name": "Task", "description": "Task related operations." }, { "name": "Subregion", "description": "Subregion related operations." }, { "name": "SAttribute", "description": "SAttribute related operations." }, { "name": "Fault", "description": "Fault related operations." }, { "name": "Maintenance history", "description": "Maintenance history related operations." }, { "name": "Deflection", "description": "Deflection related operations." }, { "name": "Fault Component", "description": "Fault Component related operations." }, { "name": "Task Comment", "description": "Task comment related operations." }, { "name": "FaultComponentFault", "description": "FaultComponentFault related operations." } ], "paths": { "/task-comments/": { "get": { "tags": [ "Task Comment" ], "summary": "Get list of Task Comments", "description": "Operation is used to get a list of Task Comments.\n\nTask Comments can be filtered by giving filtering parameters at HTTP querystring (see parameters).\n", "operationId": "getTaskCommentList", "parameters": [ { "$ref": "#/components/parameters/offsetParam" }, { "$ref": "#/components/parameters/limitParam" }, { "$ref": "#/components/parameters/filterParam" }, { "$ref": "#/components/parameters/orderParam" } ], "responses": { "200": { "description": "A result response object.", "content": { "application/json": { "schema": { "type": "object", "properties": { "Next": { "type": "string", "description": "Url to next page of Task Comments list. Null if No next page exist", "format": "url" }, "Previous": { "type": "string", "description": "Url to previous page of Task Comments list. Null if No previous page exist", "format": "url" }, "Results": { "type": "array", "items": { "$ref": "#/components/schemas/TaskComment" }, "description": "List of fetched Task Comments" }, "Total": { "type": "integer", "description": "Total number of Task Comment in the list" } } }, "example": { "Next": "http://example.com/api/v2/task-comments/?createdBy__id=1465920&limit=10&offset=10", "Previous": null, "Results": [ { "comment": "this iis a comment", "createdBy": { "email": "test_usertest.user", "first_name": "Test", "id": 1465920, "last_name": "User", "username": "test_user" }, "createdByName": "test_user", "createdTs": "2023-03-17T06:13:50", "id": 302, "task": { "closedInfo": "{}", "currentStateInfo": { "createdBy": "test_user", "createdTs": "2023-03-17T05:40:34", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "id": 10981, "inProgressInfo": "{}", "list_url": "http://example.com/api/v2/tasks/", "name": "ca_test", "openInfo": { "createdBy": "test_user", "createdTs": "2023-03-17T05:40:34", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "orderInfo": "{}", "subregion": null, "taskCategory": { "description": "Huoltokierros", "groupname": "TYPE", "id": 52, "list_url": "http://example.com/api/v2/sattrs/groupname/TYPE/", "name": "TYPE_MAINTENANCE_ROUND", "numValue": null, "orderno": 9, "txtValue": "" }, "taskLocation": "SRID=3067;POINT Z (381355.5800820000004023 6683678.7396400002762675 0.0000000000000000)", "ticket": 10861 } }, { "comment": "this iis a comment", "createdBy": { "email": "test_usertest.user", "first_name": "Test", "id": 1465920, "last_name": "User", "username": "test_user" }, "createdByName": "test_user", "createdTs": "2023-03-17T06:18:47", "id": 303, "task": { "closedInfo": "{}", "currentStateInfo": { "createdBy": "test_user", "createdTs": "2023-03-17T05:40:34", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "id": 10981, "inProgressInfo": "{}", "list_url": "http://example.com/api/v2/tasks/", "name": "ca_test", "openInfo": { "createdBy": "test_user", "createdTs": "2023-03-17T05:40:34", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "orderInfo": "{}", "subregion": null, "taskCategory": { "description": "Huoltokierros", "groupname": "TYPE", "id": 52, "list_url": "http://example.com/api/v2/sattrs/groupname/TYPE/", "name": "TYPE_MAINTENANCE_ROUND", "numValue": null, "orderno": 9, "txtValue": "" }, "taskLocation": "SRID=3067;POINT Z (381355.5800820000004023 6683678.7396400002762675 0.0000000000000000)", "ticket": 10861 } }, { "comment": "this iis a comment", "createdBy": { "email": "test_usertest.user", "first_name": "Test", "id": 1465920, "last_name": "User", "username": "test_user" }, "createdByName": "test_user", "createdTs": "2023-03-17T06:51:27", "id": 304, "task": { "closedInfo": "{}", "currentStateInfo": { "createdBy": "test_user", "createdTs": "2023-03-17T06:39:22", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "id": 10984, "inProgressInfo": "{}", "list_url": "http://example.com/api/v2/tasks/", "name": "ca_test2", "openInfo": { "createdBy": "test_user", "createdTs": "2023-03-17T06:39:22", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "orderInfo": "{}", "subregion": { "id": 21, "identifier": "Default", "list_url": "http://example.com/api/v2/subregions/", "name": "Oletus" }, "taskCategory": { "description": "Huoltokierros", "groupname": "TYPE", "id": 52, "list_url": "http://example.com/api/v2/sattrs/groupname/TYPE/", "name": "TYPE_MAINTENANCE_ROUND", "numValue": null, "orderno": 9, "txtValue": "" }, "taskLocation": "SRID=3067;POINT Z (457628.0845110000227578 6702652.4824299998581409 0.0000000000000000)", "ticket": 10864 } }, { "comment": "this iis a comment", "createdBy": { "email": "test_usertest.user", "first_name": "Test", "id": 1465920, "last_name": "User", "username": "test_user" }, "createdByName": "test_user", "createdTs": "2023-03-17T06:53:08", "id": 305, "task": { "closedInfo": "{}", "currentStateInfo": { "createdBy": "test_user", "createdTs": "2023-03-17T06:39:22", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "id": 10984, "inProgressInfo": "{}", "list_url": "http://example.com/api/v2/tasks/", "name": "ca_test2", "openInfo": { "createdBy": "test_user", "createdTs": "2023-03-17T06:39:22", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "orderInfo": "{}", "subregion": { "id": 21, "identifier": "Default", "list_url": "http://example.com/api/v2/subregions/", "name": "Oletus" }, "taskCategory": { "description": "Huoltokierros", "groupname": "TYPE", "id": 52, "list_url": "http://example.com/api/v2/sattrs/groupname/TYPE/", "name": "TYPE_MAINTENANCE_ROUND", "numValue": null, "orderno": 9, "txtValue": "" }, "taskLocation": "SRID=3067;POINT Z (457628.0845110000227578 6702652.4824299998581409 0.0000000000000000)", "ticket": 10864 } }, { "comment": "This is a test comment", "createdBy": { "email": "test_usertest.user", "first_name": "Test", "id": 1465920, "last_name": "User", "username": "test_user" }, "createdByName": "test_user", "createdTs": "2023-03-20T13:49:46", "id": 490, "task": { "closedInfo": { "createdBy": "test", "createdTs": "2020-08-17T14:19:51", "state": { "description": "Suoritettu", "groupname": "STATUS", "id": 24, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_CLOSED_COMPLETED", "numValue": null, "orderno": 5, "txtValue": "" } }, "currentStateInfo": { "createdBy": "test", "createdTs": "2020-08-17T14:19:51", "state": { "description": "Suoritettu", "groupname": "STATUS", "id": 24, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_CLOSED_COMPLETED", "numValue": null, "orderno": 5, "txtValue": "" } }, "id": 66, "inProgressInfo": { "createdBy": "test.user", "createdTs": "2020-03-30T10:34:17", "state": { "description": "Työn alla", "groupname": "STATUS", "id": 31, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_INPROGRESS", "numValue": null, "orderno": 2, "txtValue": "" }, "user": { "email": "test.user", "first_name": "Test", "id": 12821, "last_name": "User", "username": "test" } }, "list_url": "http://example.com/api/v2/tasks/", "name": "test_plan_updated3", "openInfo": { "createdBy": "test.user", "createdTs": "2019-09-24T15:27:37", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "orderInfo": { "company": { "companyName": "test", "description": "aa", "id": 18144 }, "createdBy": "test.user", "createdTs": "2020-03-30T10:34:11", "state": { "description": "Tilattu", "groupname": "STATUS", "id": 29, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_ORDERED", "numValue": null, "orderno": 1, "txtValue": "" } }, "subregion": { "id": 21, "identifier": "Default", "list_url": "http://example.com/api/v2/subregions/", "name": "Oletus" }, "taskCategory": { "description": "Ryhmänvaihto", "groupname": "TYPE", "id": 51, "list_url": "http://example.com/api/v2/sattrs/groupname/TYPE/", "name": "TYPE_GROUP_CHANGE", "numValue": null, "orderno": 8, "txtValue": "" }, "taskLocation": "SRID=3067;POINT Z (479129.1250190000282601 6682174.9375799996778369 0.0000000000000000)", "ticket": 66 } }, { "comment": "This is a test comment", "createdBy": { "email": "test_usertest.user", "first_name": "Test", "id": 1465920, "last_name": "User", "username": "test_user" }, "createdByName": "test_user", "createdTs": "2023-03-20T13:56:55", "id": 492, "task": { "closedInfo": { "createdBy": "test", "createdTs": "2020-08-17T14:19:51", "state": { "description": "Suoritettu", "groupname": "STATUS", "id": 24, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_CLOSED_COMPLETED", "numValue": null, "orderno": 5, "txtValue": "" } }, "currentStateInfo": { "createdBy": "test", "createdTs": "2020-08-17T14:19:51", "state": { "description": "Suoritettu", "groupname": "STATUS", "id": 24, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_CLOSED_COMPLETED", "numValue": null, "orderno": 5, "txtValue": "" } }, "id": 66, "inProgressInfo": { "createdBy": "test.user", "createdTs": "2020-03-30T10:34:17", "state": { "description": "Työn alla", "groupname": "STATUS", "id": 31, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_INPROGRESS", "numValue": null, "orderno": 2, "txtValue": "" }, "user": { "email": "test.user", "first_name": "Test", "id": 12821, "last_name": "User", "username": "test" } }, "list_url": "http://example.com/api/v2/tasks/", "name": "test_plan_updated3", "openInfo": { "createdBy": "test.user", "createdTs": "2019-09-24T15:27:37", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "orderInfo": { "company": { "companyName": "test", "description": "aa", "id": 18144 }, "createdBy": "test.user", "createdTs": "2020-03-30T10:34:11", "state": { "description": "Tilattu", "groupname": "STATUS", "id": 29, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_ORDERED", "numValue": null, "orderno": 1, "txtValue": "" } }, "subregion": { "id": 21, "identifier": "Default", "list_url": "http://example.com/api/v2/subregions/", "name": "Oletus" }, "taskCategory": { "description": "Ryhmänvaihto", "groupname": "TYPE", "id": 51, "list_url": "http://example.com/api/v2/sattrs/groupname/TYPE/", "name": "TYPE_GROUP_CHANGE", "numValue": null, "orderno": 8, "txtValue": "" }, "taskLocation": "SRID=3067;POINT Z (479129.1250190000282601 6682174.9375799996778369 0.0000000000000000)", "ticket": 66 } }, { "comment": "This is a test comment", "createdBy": { "email": "test_usertest.user", "first_name": "Test", "id": 1465920, "last_name": "User", "username": "test_user" }, "createdByName": "test_user", "createdTs": "2023-03-20T14:02:44", "id": 494, "task": { "closedInfo": { "createdBy": "test", "createdTs": "2020-08-17T14:19:51", "state": { "description": "Suoritettu", "groupname": "STATUS", "id": 24, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_CLOSED_COMPLETED", "numValue": null, "orderno": 5, "txtValue": "" } }, "currentStateInfo": { "createdBy": "test", "createdTs": "2020-08-17T14:19:51", "state": { "description": "Suoritettu", "groupname": "STATUS", "id": 24, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_CLOSED_COMPLETED", "numValue": null, "orderno": 5, "txtValue": "" } }, "id": 66, "inProgressInfo": { "createdBy": "test.user", "createdTs": "2020-03-30T10:34:17", "state": { "description": "Työn alla", "groupname": "STATUS", "id": 31, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_INPROGRESS", "numValue": null, "orderno": 2, "txtValue": "" }, "user": { "email": "test.user", "first_name": "Test", "id": 12821, "last_name": "User", "username": "test" } }, "list_url": "http://example.com/api/v2/tasks/", "name": "test_plan_updated3", "openInfo": { "createdBy": "test.user", "createdTs": "2019-09-24T15:27:37", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "orderInfo": { "company": { "companyName": "test", "description": "aa", "id": 18144 }, "createdBy": "test.user", "createdTs": "2020-03-30T10:34:11", "state": { "description": "Tilattu", "groupname": "STATUS", "id": 29, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_ORDERED", "numValue": null, "orderno": 1, "txtValue": "" } }, "subregion": { "id": 21, "identifier": "Default", "list_url": "http://example.com/api/v2/subregions/", "name": "Oletus" }, "taskCategory": { "description": "Ryhmänvaihto", "groupname": "TYPE", "id": 51, "list_url": "http://example.com/api/v2/sattrs/groupname/TYPE/", "name": "TYPE_GROUP_CHANGE", "numValue": null, "orderno": 8, "txtValue": "" }, "taskLocation": "SRID=3067;POINT Z (479129.1250190000282601 6682174.9375799996778369 0.0000000000000000)", "ticket": 66 } }, { "comment": "This is a test comment", "createdBy": { "email": "test_usertest.user", "first_name": "Test", "id": 1465920, "last_name": "User", "username": "test_user" }, "createdByName": "test_user", "createdTs": "2023-03-20T14:03:59", "id": 495, "task": { "closedInfo": { "createdBy": "test", "createdTs": "2020-08-17T14:19:51", "state": { "description": "Suoritettu", "groupname": "STATUS", "id": 24, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_CLOSED_COMPLETED", "numValue": null, "orderno": 5, "txtValue": "" } }, "currentStateInfo": { "createdBy": "test", "createdTs": "2020-08-17T14:19:51", "state": { "description": "Suoritettu", "groupname": "STATUS", "id": 24, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_CLOSED_COMPLETED", "numValue": null, "orderno": 5, "txtValue": "" } }, "id": 66, "inProgressInfo": { "createdBy": "test.user", "createdTs": "2020-03-30T10:34:17", "state": { "description": "Työn alla", "groupname": "STATUS", "id": 31, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_INPROGRESS", "numValue": null, "orderno": 2, "txtValue": "" }, "user": { "email": "test.user", "first_name": "Test", "id": 12821, "last_name": "User", "username": "test" } }, "list_url": "http://example.com/api/v2/tasks/", "name": "test_plan_updated3", "openInfo": { "createdBy": "test.user", "createdTs": "2019-09-24T15:27:37", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "orderInfo": { "company": { "companyName": "test", "description": "aa", "id": 18144 }, "createdBy": "test.user", "createdTs": "2020-03-30T10:34:11", "state": { "description": "Tilattu", "groupname": "STATUS", "id": 29, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_ORDERED", "numValue": null, "orderno": 1, "txtValue": "" } }, "subregion": { "id": 21, "identifier": "Default", "list_url": "http://example.com/api/v2/subregions/", "name": "Oletus" }, "taskCategory": { "description": "Ryhmänvaihto", "groupname": "TYPE", "id": 51, "list_url": "http://example.com/api/v2/sattrs/groupname/TYPE/", "name": "TYPE_GROUP_CHANGE", "numValue": null, "orderno": 8, "txtValue": "" }, "taskLocation": "SRID=3067;POINT Z (479129.1250190000282601 6682174.9375799996778369 0.0000000000000000)", "ticket": 66 } }, { "comment": "This is a test comment", "createdBy": { "email": "test_usertest.user", "first_name": "Test", "id": 1465920, "last_name": "User", "username": "test_user" }, "createdByName": "test_user", "createdTs": "2023-03-20T14:08:24", "id": 497, "task": { "closedInfo": { "createdBy": "test", "createdTs": "2020-08-17T14:19:51", "state": { "description": "Suoritettu", "groupname": "STATUS", "id": 24, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_CLOSED_COMPLETED", "numValue": null, "orderno": 5, "txtValue": "" } }, "currentStateInfo": { "createdBy": "test", "createdTs": "2020-08-17T14:19:51", "state": { "description": "Suoritettu", "groupname": "STATUS", "id": 24, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_CLOSED_COMPLETED", "numValue": null, "orderno": 5, "txtValue": "" } }, "id": 66, "inProgressInfo": { "createdBy": "test.user", "createdTs": "2020-03-30T10:34:17", "state": { "description": "Työn alla", "groupname": "STATUS", "id": 31, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_INPROGRESS", "numValue": null, "orderno": 2, "txtValue": "" }, "user": { "email": "test.user", "first_name": "Test", "id": 12821, "last_name": "User", "username": "test" } }, "list_url": "http://example.com/api/v2/tasks/", "name": "test_plan_updated3", "openInfo": { "createdBy": "test.user", "createdTs": "2019-09-24T15:27:37", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "orderInfo": { "company": { "companyName": "test", "description": "aa", "id": 18144 }, "createdBy": "test.user", "createdTs": "2020-03-30T10:34:11", "state": { "description": "Tilattu", "groupname": "STATUS", "id": 29, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_ORDERED", "numValue": null, "orderno": 1, "txtValue": "" } }, "subregion": { "id": 21, "identifier": "Default", "list_url": "http://example.com/api/v2/subregions/", "name": "Oletus" }, "taskCategory": { "description": "Ryhmänvaihto", "groupname": "TYPE", "id": 51, "list_url": "http://example.com/api/v2/sattrs/groupname/TYPE/", "name": "TYPE_GROUP_CHANGE", "numValue": null, "orderno": 8, "txtValue": "" }, "taskLocation": "SRID=3067;POINT Z (479129.1250190000282601 6682174.9375799996778369 0.0000000000000000)", "ticket": 66 } }, { "comment": "test", "createdBy": { "email": "test_usertest.user", "first_name": "Test", "id": 1465920, "last_name": "User", "username": "test_user" }, "createdByName": "Test User", "createdTs": "2023-03-20T14:09:30", "id": 498, "task": { "closedInfo": "{}", "currentStateInfo": { "createdBy": "test.user", "createdTs": "2022-01-14T12:09:53", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "id": 4983, "inProgressInfo": "{}", "list_url": "http://example.com/api/v2/tasks/", "name": "22-5", "openInfo": { "createdBy": "test.user", "createdTs": "2022-01-14T12:09:53", "state": { "description": "Avoin", "groupname": "STATUS", "id": 30, "list_url": "http://example.com/api/v2/sattrs/groupname/STATUS/", "name": "STATUS_OPEN_OPEN", "numValue": null, "orderno": 0, "txtValue": "" } }, "orderInfo": "{}", "subregion": null, "taskCategory": { "description": "Valaisin / lamppu", "groupname": "TYPE", "id": 35, "list_url": "http://example.com/api/v2/sattrs/groupname/TYPE/", "name": "TYPE_1_LAMP", "numValue": null, "orderno": 0, "txtValue": "" }, "taskLocation": "SRID=3067;POINT Z (382863.7042679999722168 6678479.6799499997869134 0.0000000000000000)", "ticket": 4943 } } ], "Total": 12 } } } }, "401": { "$ref": "#/components/responses/Http401" } }, "security": [ { "Token": [] } ] } } }, "components": { "parameters": { "offsetParam": { "name": "offset", "in": "query", "description": "Offset to start returning results.", "schema": { "minimum": 0, "type": "integer" } }, "limitParam": { "name": "limit", "in": "query", "description": "Limit number of results returned. Set to -1 to use maximum limit set in the environment. Default limit will be used if parameter is not specified. Special value -1 is available from product version 3.2.18.", "schema": { "minimum": 1, "type": "integer" } }, "filterParam": { "name": "__any of the object fields__", "in": "query", "description": "Filters list by selected object field value.\nSupports structured queries via +++__+++ delimiter.\nSupports ending keywords via +++__+++ delimiter:\n- For string fields: istartswith, startswith, iendswith, endswith, contains, icontains, isnull\n- For numerics: gt, lt, gte, lte, isnull\n- For spatial fields: contains, isnull, within, intersects, disjoint, touches, overlaps, covers, coveredby\n**Examples:** `+++usage_state__txt__istartswith=in+++` ,\n`+++plan__state__txt__startswith=In+++` , `+++creation_date__gte=2019-01-02T15:32:01+++`,\n`+++location__within=POLYGON ((641503.89 6944059.81, 641406.52 6943933.87, 641369.48 6943772.48, 641474.25 6943704.74, 641873.78 6943735.96, 641848.38 6943975.15, 641607.08 6944167.76, 641653.11 6944102.15, 641503.89 6944059.81))+++`\nSupports exclusive queries by field value using a not-operator preceding the field lookup:\n**Examples:** `+++not__type__txt__istartswith=Tie+++` , `+++not__id=1390+++`\n", "schema": { "type": "string" } }, "orderParam": { "name": "orderby", "in": "query", "description": "Selects the object field to order the returned objects by.\nCan be used to sort in reverse order with '-' prefix.\nCan have several ordering rules separated by comma.\nCan be used only for object own fields and does not support structured queries.\n**Example:** `orderby=creator,-creation_date`\n", "schema": { "type": "string" } } }, "schemas": { "TaskComment": { "type": "object", "properties": { "comment": { "type": "string", "description": "Comment" }, "createdBy": { "$ref": "#/components/schemas/User" }, "createdByName": { "type": "string", "description": "Complete name or username of the user who created the task comment." }, "createdTs": { "type": "string", "description": "Creation date and time of task comment.", "format": "date-time", "readOnly": true }, "id": { "type": "integer", "description": "Unique id of task comment.", "readOnly": true }, "task": { "$ref": "#/components/schemas/KeyworkTask" } }, "description": "Information about Task Comment" }, "User": { "type": "object", "properties": { "email": { "type": "string", "description": "Email", "readOnly": true }, "first_name": { "type": "string", "description": "First name", "readOnly": true }, "id": { "type": "integer", "description": "Primary key", "readOnly": true }, "last_name": { "type": "string", "description": "Last name", "readOnly": true }, "username": { "type": "string", "description": "Username", "readOnly": true } } }, "KeyworkTask": { "allOf": [ { "$ref": "#/components/schemas/FlatTask" }, { "type": "object", "properties": { "closedInfo": { "$ref": "#/components/schemas/TaskStateChangeInfo" }, "currentState": { "$ref": "#/components/schemas/TaskState" }, "inProgressInfo": { "$ref": "#/components/schemas/TaskStateInProgressInfo" }, "network": { "$ref": "#/components/schemas/TaskNetwork" }, "openInfo": { "$ref": "#/components/schemas/TaskStateChangeInfo" }, "orderInfo": { "$ref": "#/components/schemas/TaskStateOrderedInfo" }, "repeatParent": { "$ref": "#/components/schemas/KeyworkTask" }, "subregion": { "$ref": "#/components/schemas/Subregion" }, "taskCategory": { "$ref": "#/components/schemas/TaskCategory" } } } ] }, "ErrorDetailsResponse": { "required": [ "details" ], "type": "object", "properties": { "details": { "type": "string", "description": "Detailed description of error" } }, "description": "Standard error response payload" }, "FlatTask": { "required": [ "taskLocation", "taskCategory", "subregion" ], "type": "object", "properties": { "automaticRepeat": { "type": "integer", "description": "If task is repeatable automatically", "readOnly": true }, "currentState": { "type": "integer", "description": "Id of current task state", "readOnly": true }, "endDate": { "type": "string", "description": "Task end date", "format": "date" }, "executionCycle": { "type": "integer", "description": "Execution cycle", "readOnly": true }, "id": { "type": "integer", "description": "Primary key", "readOnly": true }, "name": { "type": "string", "description": "Task name" }, "network": { "type": "integer", "description": "Network SAttribute id" }, "plan": { "type": "boolean", "description": "Is plan" }, "repeatOrderNum": { "type": "integer", "description": "Running number for repeatable tasks", "readOnly": true }, "repeatParent": { "type": "integer", "description": "Parent task id" }, "repeatable": { "type": "integer", "description": "Info if task is repeatable" }, "startDate": { "type": "string", "description": "Task start date", "format": "date" }, "subregion": { "type": "integer", "description": "Related Subregion id" }, "taskCategory": { "type": "integer", "description": "Related Category id" }, "taskIdentifier": { "type": "string", "description": "Task identifier", "readOnly": true }, "taskLocation": { "type": "string", "description": "Task geographical location", "format": "ewkt" } }, "description": "Task" }, "TaskStateChangeInfo": { "type": "object", "properties": { "createdBy": { "type": "string", "description": "User who updated the task to this state" }, "createdTs": { "type": "string", "description": "When state was updated", "format": "date-time" }, "state": { "$ref": "#/components/schemas/TaskState" } }, "description": "Information when and who updated the task and what state it was updated to." }, "TaskState": { "required": [ "id", "groupname", "logical_txt", "txt", "list_url" ], "type": "object", "properties": { "groupname": { "enum": [ "STATE" ], "description": "Group name of constant" }, "id": { "type": "integer", "description": "Unique id of constant" }, "list_url": { "type": "string", "description": "Url to fetch all contants from this group", "format": "url" }, "num_value": { "type": "number", "description": "Numeric value", "format": "float" }, "orderNo": { "type": "integer", "description": "Order number" }, "txtValue": { "type": "string", "description": "Human readable textual representation" } }, "description": "Task State" }, "TaskStateInProgressInfo": { "type": "object", "properties": { "createdBy": { "type": "string", "description": "User who updated the task to this state" }, "createdTs": { "type": "string", "description": "When state was updated", "format": "date-time" }, "state": { "$ref": "#/components/schemas/TaskState" }, "user": { "$ref": "#/components/schemas/TaskUser" } }, "description": "Information when and who updated the task and what state it was updated to.\n\nIn Progress info has an additional detail for the user assigned for the task.\n" }, "TaskNetwork": { "required": [ "id", "groupname", "logical_txt", "txt", "list_url" ], "type": "object", "properties": { "groupname": { "enum": [ "TASK_NETWORK" ], "description": "Group name of constant" }, "id": { "type": "integer", "description": "Unique id of constant" }, "list_url": { "type": "string", "description": "Url to fetch all contants from this group", "format": "url" }, "num_value": { "type": "number", "description": "Numeric value", "format": "float" }, "orderNo": { "type": "integer", "description": "Order number" }, "txtValue": { "type": "string", "description": "Human readable textual representation" } }, "description": "Task Network" }, "TaskStateOrderedInfo": { "type": "object", "properties": { "company": { "$ref": "#/components/schemas/Company" }, "createdBy": { "type": "string", "description": "User who updated the task to this state" }, "createdTs": { "type": "string", "description": "When state was updated", "format": "date-time" }, "state": { "$ref": "#/components/schemas/TaskState" } }, "description": "Information when and who updated the task and what state it was updated to.\n\nOrdered info has an additional detail for the user assigned for the task.\n" }, "Subregion": { "type": "object", "properties": { "id": { "type": "integer", "description": "Subregion primary key" }, "identifier": { "type": "string", "description": "System generated identifier for subregion." }, "list_url": { "type": "string", "description": "Url to fetch all subregions", "format": "url" }, "name": { "type": "string", "description": "Name of subregion" }, "network_type": { "$ref": "#/components/schemas/SAttribute" } }, "description": "Information about Subregion" }, "TaskCategory": { "required": [ "id", "groupname", "logical_txt", "txt", "list_url" ], "type": "object", "properties": { "groupname": { "enum": [ "TYPE" ], "description": "Group name of constant" }, "id": { "type": "integer", "description": "Unique id of constant" }, "list_url": { "type": "string", "description": "Url to fetch all contants from this group", "format": "url" }, "num_value": { "type": "number", "description": "Numeric value", "format": "float" }, "orderNo": { "type": "integer", "description": "Order number" }, "txtValue": { "type": "string", "description": "Human readable textual representation" } }, "description": "Task Category" }, "TaskUser": { "type": "object", "properties": { "email": { "type": "string", "description": "User email", "readOnly": true }, "id": { "type": "integer", "description": "Primary key", "readOnly": true }, "username": { "type": "string", "description": "User name", "readOnly": true } } }, "Company": { "type": "object", "properties": { "companyName": { "type": "string", "description": "Company name", "readOnly": true }, "description": { "type": "string", "description": "Company description", "readOnly": true }, "id": { "type": "integer", "description": "Primary key", "readOnly": true } } }, "SAttribute": { "type": "object", "properties": { "description": { "type": "string", "description": "Attribute description" }, "groupname": { "type": "string", "description": "Group name of constant" }, "id": { "type": "integer", "description": "Unique id of constant" }, "list_url": { "type": "string", "description": "Url to fetch SAttributes by groupname", "format": "url", "readOnly": true }, "name": { "type": "string", "description": "Attribute name" }, "numValue": { "type": "number", "description": "Numeric value", "format": "float" }, "orderno": { "type": "integer", "description": "Order number" }, "txtValue": { "type": "string", "description": "Human readable textual representation" } }, "description": "SAttribute" } }, "responses": { "Http401": { "description": "Authentication credentials are missing or invalid", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorDetailsResponse" }, "example": { "details": "Authentication credentials were not provided" } } } } }, "securitySchemes": { "Token": { "type": "apiKey", "description": "Token issued for API consumer.", "name": "Authorization", "in": "header" } } } } ````