I am trying to track a GitLab issue no matter in what project it may reside.
An issue is normally created in GitLab within the context of a project. If it is moved to another project, the issue is closed and a new issue is created. The original issue tracks the new location using the moved_to_id
. The problem is I have no idea how to follow this moved_to_id
value using the GitLab API v4. GitLab does not honour the typical REST-like behaviour where you can retrieve an entity by its ID.
For example, if I call https://gitlab.com/api/v4/issues/
I'll get a list of issues as objects: these objects have a set of fields: title, description, state, ..., id
and iid
. The iid
is the user-friendly id of an issue within a project. But what is the id
and how is it useful? I can't retrieve an issue using this id
- at least not using expected ways...
Consider an issue exists in https://gitlab.com/api/v4/issues/
with id
== 29564819
,
https://gitlab.com/api/v4/issues/29564819
returns a 404.https://gitlab.com/api/v4/issues/29564819/
returns a 404.https://gitlab.com/api/v4/issues/29564819?scope=all
returns a 404https://gitlab.com/api/v4/issues/?id=29564819
returns all the issues (no effect using parameter).
Can I retrieve an issue without a project? Do I have to resort to using labels?