Tasks improvements in issues and MRs
Description
Blocking merging if an MR has incomplete tasks.
It would be nice to have a query for the tasks of an issue or merge request. I'm more interested in the query-side, but I would expect a way to finish tasks via the API would be associated with it.
Proposal
Add an additional requirement for merging that all tasks be completed first.
Expose API endpoints for interacting with tasks.
Future features may include closing issues and merge requests mark tasks matching Requires <reference>
(using a regex similar to issue closing from MRs and commit messages) as complete.
Links / references
Relates to #20901 (closed) and (possibly) #23955 (moved).
Documentation blurb
When working with a multi-repository project, merge requests may be dependent on other merge requests or a system environment update being completed before they can be merged. In this case, the merge request itself may be passing CI and not a work-in-progress, but still must not be merged before other items. In this situation, you may have the project set to require that all tasks be completed before merge requests may be merged and to add a task to the description of the merge request referencing the required items.