I want to know which application/software version fixes the bug. In other words, I have bug/issue ID and want to find a version number.
I start by doing:
GET projects/*cut*/issues/42/closed_by
which gives me a merge request which lists this issue as fixed:
[
{
"id":"*cut*",
"iid":31,
"project_id":"*cut*",
"title":"Demo merge request",
"description":"Fixes #42",
"state":"merged",
"created_at":"2023-05-16T13:18:27.079Z",
"updated_at":"2023-05-16T13:18:44.719Z",
"merged_at":"2023-05-16T13:18:44.041Z",
"closed_by":null,
"closed_at":null,
"target_branch":"master",
"source_branch":"WorkFor42",
"user_notes_count":0,
"upvotes":0,
"downvotes":0,
"assignees":[],
"assignee":null,
"reviewers":[],
"source_project_id":"*cut*",
"target_project_id":"*cut*",
"labels":[],
"draft":false,
"work_in_progress":false,
"milestone":null,
"merge_when_pipeline_succeeds":false,
"merge_status":"can_be_merged",
"detailed_merge_status":"not_open",
"sha":"c8ddb6b51d500893f05ae40c646399d33408dad9",
"merge_commit_sha":"1fa7f1a368af806fa8945d00fe99a08608e3d3ba",
"squash_commit_sha":null,
"discussion_locked":null,
"should_remove_source_branch":true,
"force_remove_source_branch":true,
"reference":"!31",
"references":{
"short":"!31",
"relative":"!31",
"full":"*cut*/test!31"
},
"web_url":"https://*cut*/-/merge_requests/31",
"time_stats":{
"time_estimate":0,
"total_time_spent":0,
"human_time_estimate":null,
"human_total_time_spent":null
},
"squash":false,
"squash_on_merge":false,
"task_completion_status":{
"count":0,
"completed_count":0
},
"has_conflicts":false,
"blocking_discussions_resolved":true,
"approvals_before_merge":null
}
]
Now, how do I move forward? I would like to get a release name (tag name), which includes this merge request.
I also tried to list all releases via:
GET projects/*cut*/releases
and then do
GET projects/*cut*/issues?state=closed&release_tag=each-name-from-prev-results
for each of the returned release. Unfortunately, the release_tag
is ignored by the projects/id/issues
API.