Send `/-/work_items` path on list view
Work items are viewed on the /-/work_items
route such as https://gitlab.com/gitlab-org/plan-stage/test-project/-/work_items/104945157
However, the GraphQL API gives work item paths/urls as /-/issues
routes instead of /-/work_items
routes. They should be /-/work_items
routes.
// https://gitlab.com/-/graphql-explorer
{
project(fullPath: "gitlab-org/plan-stage/test-project") {
issue(iid: "73") {
id
title
webPath
webUrl
}
}
}
// response
{
"data": {
"project": {
"issue": {
"id": "gid://gitlab/Issue/104945157",
"title": "This is a work item",
- "webPath": "/gitlab-org/plan-stage/test-project/-/issues/73",
+ "webPath": "/gitlab-org/plan-stage/test-project/-/work_items/104945157",
- "webUrl": "https://gitlab.com/gitlab-org/plan-stage/test-project/-/issues/73"
+ "webUrl": "https://gitlab.com/gitlab-org/plan-stage/test-project/-/work_items/104945157"
}
}
}
}
Edited by Coung Ngo