add/remove label on kanban column change#28745
add/remove label on kanban column change#28745iminfinity wants to merge 2 commits intogo-gitea:mainfrom
Conversation
|
We understand that this will need some adjustments to get merged - but I hope you'll work with us on what to improve - so we can get this feature merged to the benefit of everyone :) |
|
Did not look into much code but I think only adding one label may be not enough. And adding n labels per column needs a different backend structure. |
|
we add 1 label per column - and remove "the other column labels" - when you switch issue to new column. That way you can search for ALL issues in a certain column (like 'ready' - or what states you want to use for your kanban columns) We use this for several things - and also the fact that we now get notifications - means our webhook informs when someone moves issues around in kanban |
|
I understand that, but other people may want to add two labels when moving an item. And that would need a totaly different backend structure. Just don't want to see code for just one label merged just to get replaced some weeks later with code for multiple labels. |
|
Having 2 labels for one state (column) - would seem a very odd requirement. Building the generic "do anything" - someone else did a PR for - but we were not able to make it work - so we opted for the simpler option that IMHO would fit the needs of many. |
Column |
290ecde to
6685e2a
Compare
| Default bool `xorm:"NOT NULL DEFAULT false"` // issues not assigned to a specific board will be assigned to this board | ||
| Sorting int8 `xorm:"NOT NULL DEFAULT 0"` | ||
| Color string `xorm:"VARCHAR(7)"` | ||
| LabelID int64 `xorm:"DEFAULT 0"` |
There was a problem hiding this comment.
We did not see the relevance to assign more than 1 label on column change. see just above where I explained it :)
#28745 (comment)
|
any updates on this? |
|
I would like this one could be replaced by #30205 |
add/remove label on kanban column change
the idea is each column in a kanban can have a labelId attached to it
and everytime an issue is moved to a new column that label is added to the issue(and the other label attached is removed)
this does not affect other labels that may be present in the issue
resolves #26704
Screencast.from.09-01-24.webm
PR sponsored by Obmondo.com