I have some contractors that work for me but they are typically remote. I'm looking for an easier way to give them the work that needs to be done, track how long it takes, how much it cost, etc. I'm an embedded software engineer by training and I've noticed the work flow follows just like software development. Something breaks. The issue is reported. This issue is fixed. The issue is closed. Could we add the ability to make the number of fields and the type of fields that are available in the case tracker to be more generic? For example, I'd like the workers to fill in the number of hours it took to fix the problem. I'd like severity and priority. Also, I'd like to change the naming of what is. For example, instead of "Projects", I have Accounts (with addresses accociated, etc). In the end I'd like to tie it into custom nodes like a "Customer".
I'd be willing to help but my PHP is just good enough that I can read the code but I'm still working on creating code in a complex environment. I'd be more than happy to test and create documentation.
Thanks.
--Ryan
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | casetracker_states_0.patch | 5.22 KB | joshk |
| #6 | casetracker_states.patch | 262.11 KB | joshk |
Comments
Comment #1
KSA213755 commented+1 for the generic fileds. While the terminology that is displayed to the user can be changed in module, doing so takes some time, and then all that hacking has to be done over and over with each update to the module. If the terminology itself could be user defined that would really extend the usefulness of Case Tracker. For example, I hacked the module some time ago and changed "Project" to "Agency", "Case" to "Agency Case No." and "Assigned to" to "Prosecutor Assigned" to name a few. It took a while to find all the places where these terms are located in the module, but it didn't seem to bad at the time. However, along with the next module update, came the chore of changing all the terms that I'd changed before. Making the ability to change at least the main lables part of the module itself would be fantastic.
Roger
Comment #2
geeloo commentedKSA213755 : you can try using locale.module, create a "custom_english" language and translate the terms you don't like.
RyanR was thinking about "adding" fields to cases.
For projects, you can design a cck node type and associate it with the casetracker via the settings page.
Comment #3
KSA213755 commentedI'm not familiar with the locale.module, but I'll try that out and see how it works out. Thank you.
Comment #4
joshk commented+1 for the ability to customize the types and statuses in-module as well. This would be possible with localization if the module followed best-practice and used the t() function for the various status a case can have, but it doesn't at the moment.
It should use t() and it would ALSO be good to have the list of types and case stati be customizable. This would allow people to add/rename these to create the workflow that works for them. It can be accomplished pretty easily by having a couple of arrays stored in via variable_set().
Comment #5
joshk commentedIn fact, these are already being stored in the DB in their own table. All that's needed is to open up an admin interface to manipulate these. States could be added/removed pretty easily if code like this:
Were made slightly smarter. Keys can be generated on the fly from the data in the casetracker_case_states table.
This would add quite a lot of extensibility to this module.
Comment #6
joshk commentedOk, here's a patch.
This does a few things. First of all, it amends the cases_table functions to work off the database, rather than assuming there are always six states and that they are all the same. This was already a little broken. It also removes some depricated code.
I also added a hook_help case for the admin/setings/casetracker page that points admins at admin/case for the states. That page now defaults to the overview rather than a page with three links to that page. On that status-state overview page I also removed the ID column (which is meaningless to the admin) and had the query sort by case_state_realm rather than ID, so types of states stick together.
Comment #7
joshk commentedThre we go...
Comment #8
DaveNotik commentedThanks Josh! Can't wait to give the changes a try as soon as I get a chance. This module is at a stage where it really needs people to pick the ball and effectuate changes, so your work is welcomed.
I changed the title back to something more descriptive.
Comment #9
DaveNotik commentedHi Josh:
Your patch applied for me.
* I do see admin/case/states.
* admin/case still defaults to the page with the 3 links on it.
* Perhaps "Administer case fields" menu item can be moved to settings > case tracker > case states (and thus remove the unnecessary "administer > case" item.
Thanks!
Comment #10
morbus iffI'm closing - this was rewritten and, with CCK ability hitting HEAD today (though still in a working/draft state), customizing the existing case states, or adding more via CCK, is possible.
Comment #11
(not verified) commented