Task labels / #2408

Labels can be used to distinguish different types of tasks. Since most items in Streber are somehow derived from Task assigning a label like Feature, Bug or Discussion helps to distinguish them.
They have no real effect to the display of the Task. Users coming from MacOS might know this as "Label" or "Etiquettes".

Internal

Streber stores a list of labels for each project. That's why they are not translated: They are customizable by the admin. Currently there is no interface for this and you can only change labels for new projects: For this you have to add a line to your customize.inc.php:
confChange('PROJECT_DEFAULT_LABELS', 'Bug,Feature,Enhancement,Refactor,Idea,Research,Organize,Wiki,Docu');

In lists, the first label is rendered red (for Bug). The second green (for Feature). All others are rendered gray. The number of Labels in not limited.

In a distant future there should be a function to change project labels

8 Comments

madlyr

Oct 13, 2006
We should add task label filtering
This could help in more complicated projects with many tasks.

pixtur

Oct 13, 2006
Reply to We should add task label filtering
Filtering inside one project is ok (you can map the labels to the actual numbers) but filtering over several project with Label-Strings is tricky to do in SQL. (I have no Idea who splitting up the string an matching agains a number would work).


guest

Nov 5, 2006
Fatal error
When I add the line above in customiez.inc.php, I get this message :

Fatal error: Call to undefined function changeConf() in D:wampwwwstrebercustomize.inc.php on line 19

Why ? Thanks :)

pixtur

Nov 6, 2006
Reply to Fatal error
It was a typo: The function should be called

 confChange(...)

Thanks for point out.

guest

Sep 22, 2007
there should be a thing called Modules
Each project will have modules and searching by modules would be good.. here there is no option to do so

webbplatsen

Jul 18, 2008
Still doesn't work?
Is it possible to have your own labels?
I tried but can not get it to work.

Actually I just want to be able to translate the default labels.

palobo

Jul 18, 2008
Labels in array?
Wouldn't it be more sensible to define an array somewhere and then feed confChange()?

That way it shouldn't be to hard to easily change and maybe even localize the labels.

If we take into account that streber is intended to be a Colaboration tool, then it would make sense that there be a need for diferent languages in the same project. I live and work in Portugal, but prefer to have everything in English. My colegues prefer Portuguese. It would be nice to have the labels translated aswell, depending on my selected prefered language.

pixtur

Sep 9, 2008
Right now...
Labels are a comma-separated string for each project. You can overwrite the the default labels, that will be assigned to new projects, but right now there is no way to change the labels of existing projects.

Translating the labels would require the labels to be an associative array with one list per language. I believe this is overdone.



 

Comment / Update