vscode-kanban icon indicating copy to clipboard operation
vscode-kanban copied to clipboard

Is there a way to make task id simple positive integer?

Open alx73n opened this issue 7 years ago • 6 comments

Hello. Currently task id is big string like '20180702151728_179455396_9237fae6e510bfd542e5cba517105482' which is fine to be too unique. It would be great having it as simple positive integer like 1,2,3... or add another field with autoincrement(+1). Thus it can be put in commit like 'closing task id #1' in clear way.

alx73n avatar Jul 16 '18 13:07 alx73n

Yes a small integer task Id would be good but currently Id has itself some other information in it which is needed to identify the card details so it will be better to add another field to search the card.

HamzaAnis avatar Aug 18 '18 16:08 HamzaAnis

@ataran17 @HamzaAnis

Sorry for the late answer, but I had now time to implement the feature in version 1.22.0.

There is a new setting, called simpleIDs, which indicates to use simple integer values as IDs and is (true) by default.

There is not a bug, but a small "issue":

If you have existing cards, which have IDs like 20180531184916_11696734_e0f09d02db244a4db9409fe5b53e7bc1, you should remove all id properties from all entries in your .vscode/vscode-kanban.json file and save your board manually (by "save" button the upper right corner of the WebView), otherwise the next ID, that will be used is something like 20180531184917.

If you create a new board, that "issue" will not appear.

mkloubert avatar Aug 21 '18 16:08 mkloubert

Great. Good to know that. This issue can be closed or whatever you want. Do you have plans to improve the UI for it?

HamzaAnis avatar Aug 21 '18 19:08 HamzaAnis

@HamzaAnis

Do you mean a better look?

mkloubert avatar Aug 21 '18 20:08 mkloubert

Yes.

HamzaAnis avatar Aug 22 '18 00:08 HamzaAnis

I think it can be shown now along with the task name on board (in case it is integer). So that one could copy/paste it right from board task to commit field.

alx73n avatar Aug 23 '18 07:08 alx73n