- v4 API:
- GitLab API: https://docs.gitlab.com/ce/api/todos.html
List active todos:
todos = gl.todos.list()
You can filter the list using the following parameters:
action: can beassigned,mentioned,build_failed,marked, orapproval_requiredauthor_idproject_idstate: can bependingordonetype: can beIssueorMergeRequest
For example:
todos = gl.todos.list(project_id=1) todos = gl.todos.list(state='done', type='Issue')
Mark a todo as done:
todos = gl.todos.list(project_id=1) todos[0].mark_as_done()
Mark all the todos as done:
gl.todos.mark_all_as_done()