GRM-28: fix: Vikunja task resolution pagination in post_merge.py
This commit was merged in pull request #7.
This commit is contained in:
@@ -157,6 +157,11 @@ class VikunjaClient:
|
||||
r = self._request("GET", "/tasks", params=params)
|
||||
return r.json()
|
||||
|
||||
def list_project_tasks(self, project_id: int, **params: Any) -> list[dict[str, Any]]:
|
||||
"""List tasks in a specific project (more efficient than listing all tasks)."""
|
||||
r = self._request("GET", f"/projects/{project_id}/tasks", params=params)
|
||||
return r.json()
|
||||
|
||||
def post_comment(self, task_id: int, comment: str) -> None:
|
||||
self._request("POST", f"/tasks/{task_id}/comments", json={"comment": comment})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user