Project

General

Profile

Some question about Redmine Plugins

Added by r zen over 13 years ago

Hi, first excuse my bad English.
So here is my problem , I have to make a plugin for redmine to keep it synchronized with an other tool that we use in our dev process,
So here is what the plugin has to do:
override issue model to add an attribute (spot_id)
let user set the related spot_id when they create a new issue (by adding fields to the issue creation form)
exec a specific function when a issue related to a spot is closed.

I have to tell you that I don't now ruby, i'm learning it now for this purpose.

I've created the plugin et his related models:
spot and spots_projects
So i want to make a one-to-one relation between issue and spot. and let user set related spots when they create an issue.

Can anyone help me? thanks.


Replies (1)

RE: Some question about Redmine Plugins - Added by Felix Schäfer over 13 years ago

  1. You should probably learn a little more rails and read the redmine plugin guide, 1-to-1 relations are part of the rails guides, how to extend a core model a part of the plugin guide,
  2. For an extra issue attribute, you'd probably be better off using a custom field, that way you wouldn't have to take care of managing its storage and display.
    (1-1/1)