Added tasks back to issues API
What does this MR do and why?
We removed the ability to fetch work items from the issues API because they were missing a few things that legacy issues had. Now that we are nearing parity with tasks, it makes sense to add it back, which this MR does.
How to set up and validate locally
- Get a list of issues in a project on the command line like so:
curl --header "PRIVATE-TOKEN: <token>" "http://localhost:3000/api/v4/projects/<project_id>/issues"
- Create a new task using the API
curl -X POST --header "PRIVATE-TOKEN: <token>" "http://localhost:3000/api/v4/projects/<project_id>/issues?title=test+task&issue_type=task"
- Make the same request
curl --header "PRIVATE-TOKEN: <token>" "http://localhost:3000/api/v4/projects/<project_id>/issues"
- You should see the newly created task first on the list and with the attribute
issue_type:task
- You can also filter the issue list by the new type
curl --header "PRIVATE-TOKEN: <token>" "http://localhost:3000/api/v4/projects/<project_id>/issues?issue_type=task"
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Mario Celi