API: Allow admin/owner to set timestamp when changing issue state

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Zendesk issue: https://gitlab.zendesk.com/agent/tickets/26660

The API currently allows admins and project owners to set an issue's timestamp on creation. This aids in migrating from other systems to GitLab. However, when the issue is then transitioned to 'closed' there is no way to send a timestamp to affect when that issue appears 'closed'. The system note will show the current time. For some users this is important and gives them an accurate representation of when the issue was actually fixed or closed.

Can we add a parameter that will allow setting the timestamp on actions such as closing an issue, adding/removing labels, milestones, etc? Comments are handled because you can set a created_attimestamp on creation.

cc/ @JobV @DouweM What do you think?

Edited Sep 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading