Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Minimum Issue Number in Gitlab

Tags:

git

gitlab

We are migrating from subversion to git and we've decided to use Gitlab as the web interface. We reference an issue number in our commit messages. Since we are using Gitlab's issue tracker, the number would reset to 1. For a given project, how can I set the minimum issue number?

like image 934
csnate Avatar asked Mar 27 '15 17:03

csnate


People also ask

Does GitLab have issue tracking?

We built on top of GitLab's existing issue-tracking functionality and leverage the power of GitLab issue labels by utilizing them as lists on a Kanban board. You can construct different views of your issue board while maintaining the same filtering and sorting abilities you see across the issue tracker.

How do I delete multiple issues in GitLab?

Use case: When cloning a project (export/import), the project may bring over multiple unneeded issues and it would be helpful to be able to delete them all at once using a selection tool rather than having to use the currently rather convoluted method of > edit issue > delete > click issues > find next issue > repeat.

What is weight in GitLab issue?

With weighted issues, you can get a better idea of how much time, value, or complexity a given issue has or costs. You can set the weight of an issue during its creation, by changing the value in the dropdown menu. You can set it to a non-negative integer value from 0, 1, 2, and so on.


1 Answers

I don't think there's an official way to accomplish this. You're probably going to need to get your hands dirty in the database to get it done. I would try to create a dummy issue in your project which will create issue 1. Then go into the database, find the issues table and edit the position column to the number one before you want to start with then resolve it. In theory, the next issue created would be the number you want to start with.

I haven't tested this. If it does work, it is possible it could cause long term problems break with other functionality or issues with future upgrades.

like image 188
Steven V Avatar answered Oct 24 '22 12:10

Steven V