Project

General

Profile

Actions

Feature #14804

closed

issue generation based on RFP in redmine plugin

Added by anish shah almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin Request
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

i have been creating RFP plugin in redmine ,in this plug in contains a form which will filled by user .The form fields contains client requirement when user fill &submmited it the issues must generate in respective project.All form fields on form must become the issues
my question is how each fiels on form i map with the redmine issue table and generate the respective issue

Actions #1

Updated by anish shah almost 11 years ago

anish shah wrote:

i have been creating RFP plugin in redmine ,in this plug in contains a form which will filled by user .The form fields contains client requirement when user fill &submmited it the issues must generate in respective project.All form fields on form must become the issues
my question is how each fiels on form i map with the redmine issue table and generate the respective issue

i have been creating RFP plugin in redmine ,in this plug in contains a form which will filled by user .The form fields contains client requirement when user fill &submmited it the issues must generate in respective project.All form fields on form must become the issues my question is how each fiels i map with the redmine issue table and generate the respective issue

def new
@rfp = Rfp.new
respond_to do |format|
format.html # new.html.erb
end
end
def create
params[:rfp].delete(:project_id)
@rfp = Rfp.new(params[:rfp])
issue = Issue.new
issue.subject = params[:rfp]
issue.tracker = Tracker.find_by_name("Feature")
issue.project = Project.find_by_name(params[:project])
issue.start_date = Time.now.localtime.strftime("%Y-%m-%d")
issue.priority = IssuePriority.find_by_name("Normal")
issue.author = User.find_by_mail("")
issue.status = IssueStatus.find_by_name("New")
issue.save
respond_to do |format|
if @rfp.save
format.html { redirect_to :action => "show", :id => @rfp }
else
format.html { render "new" }
end
end
end

Here rfp is in th plugin object when i submitted the form it is successfully created but at the same time i want to create a new issue in redmine based on the value submmited in the form thats not happen any help

Actions #2

Updated by anish shah over 10 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Toshi MARUYAMA over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF