Tips 'n Tricks

Improve Redmine's client management options

Tags: 

Out of the box Redmine doesn't look like it has a lot of options for managing clients, but you'd be wrong - with a little customizing you can at least fake it. There are two parts to this - set up a new user group and add some custom fields for users.

The first step is to create a new user group called Client:

  • Log into the Administration -> Roles & Permissions page and click on New Role
  • Set the name to "Client" and give them the follow permissions: Issues - add, add a note, change status, new file, new relation; News - add a comment; Documents - add, new file; Files - add. (adjust as you see fit)
  • Save what you've set and assign a user the Client role for a project.
  • Next time you view that project's Overview page it'll list them on the Members block as a Client

Simple but useful.

The second step is to round off the user information options by adding some custom fields.

  • Go to the Administration -> Custom Fields page and click on Users link.
  • Click on New Custom Field, set the name to "Company", leave the format as "text", set the min length to 0, the max length to e.g. 30, leave the regular expression field blank, leave the required option unchecked, and click Save.
  • Repeat for any other fields you want, e.g. Work Phone, Cell Phone, Work Address, etc.

Now any time you add a user you can give them the above information.

Putting these two together, now when you go to the Project Overview page you can see who the client is and by clicking on their name see their contact information.

N00b FAQ: belongs_to is singular

Tags: 

A little tidbit I forgot along the way - in Rails the belongs_to (1-to-many association directive at the 1 side) directive needs you to assign it a singular symbol and not a multiple, e.g.:
[source:ruby]class Product belongs_to :category
end[/source]

List bullet colors, a CSS annoyance

Tags: 

Something I've been asked to do several times over my career is to have a list in HTML with the bullet show up as a different color to the text. Unfortunatley the HTML & CSS standards don't allow this without some shoe-horning. You basically have two options:

  • Use an image
  • Set the color on the list that you want the bullets to be, then add another element within the LI (list item) that contains all the content and set its color to what the text should be.

The problem with the first option is that you have a separate file to download, the problem with the second is that you have to add erroneous tags for something that IMHO should be part of the standard.

Tip: Moving RedMine to another server, don't forget the files

Tags: 

This past week I moved an install of RedMine from one server to another, or rather I just moved the database over and checked out the SVN code again. After getting it going correctly I promptly forgot about the fact it was at a new location and just worked away on my assigned tasks. Well, as it turns out I'd completely forgotten about the uploaded files, which now wouldn't download anymore. The problem was that I forgot to verify where the attached files were stored, and it turned out to be in "files" directory, so now I have to manually copy those few files over and all will be well.

Pages

Subscribe to Tips 'n Tricks