Add the ability to set the iteration of an issue through the REST API

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

Proposal

We would like to set the iterations of some of our issues, using the REST API. We have our own internal GitLab bot implementation, that ensures that certain rules are enforced.

For example: When an issue is assigned to a person, it has to, as a rule, have an iteration assigned with it. The boards we have set up for ourselves assume this, and forgetting to set the iteration causes some of our issues to fall through the cracks.

Our bot would be perfectly able to enforce this rule, but the REST API does not provide any way to set the iteration_id of an issue.

Solution

For us, the best solution would be to add this to the REST API. However, if it was added to the GraphQL API instead (where it is also not possible), we would be able to accomplish our goal, albeit not with the main way we talk to GitLab.

Note: We're a premium customer, and I've talked to support about this before. The understanding is, that they will be updating the labels and add anything I missed to the issue.

Edited by 🤖 GitLab Bot 🤖