diff --git a/src/app/features/issue/providers/gitlab/gitlab-api/gitlab-api.service.ts b/src/app/features/issue/providers/gitlab/gitlab-api/gitlab-api.service.ts index 24400826db6..60fef29d437 100644 --- a/src/app/features/issue/providers/gitlab/gitlab-api/gitlab-api.service.ts +++ b/src/app/features/issue/providers/gitlab/gitlab-api/gitlab-api.service.ts @@ -212,13 +212,13 @@ export class GitlabApiService { time_estimate: null | number; total_time_spent: null | number; }*/ - const iid = this._getIidFromIssue(issueId); + return this._sendRawRequest$( { url: `${this._apiLink( cfg, cfg.project || undefined, - )}/issues/${iid}/add_spent_time`, + )}/issues/${issueId}/add_spent_time`, method: 'POST', data: { duration, diff --git a/src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts b/src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts index e04a82f2d15..244ac53860b 100644 --- a/src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts +++ b/src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts @@ -215,7 +215,7 @@ export class GitlabCommonInterfacesService implements IssueServiceInterface { issuePoints: issue.weight, issueWasUpdated: false, issueLastUpdated: new Date(issue.updated_at).getTime(), - issueId: issue.id as string, + issueId: issue.number.toString(), }; }