Project

General

Profile

build query string using link_to

Added by Marco Nobler over 8 years ago

Hi, i searched trough forums but didn't find how to build a querystring like in this example using "link_to" helper, ie specifying "issue[description]" and so on.

http://www.redmine.org/projects/redmine/issues/new?issue[description]=prefilled%20description&issue[custom_field_values][2]=Duplicate

please, can anyone help me?
thanks
Marco


Replies (1)

RE: build query string using link_to - Added by Marco Nobler over 8 years ago

i found a solution, below:

link_to "Crea Issue", :controller => "issues", :action => "new", :project_id => @pid, :issue => {:description => iddm[:descrizione], :subject => iddm[:titolo], :priority_id => iddm[:priorita], :custom_field_values => {:"1" => iddm[:codice_agesp]}}, :disabled => false

i specified issue attributes in hash array.

Marco Nobler wrote:

Hi, i searched trough forums but didn't find how to build a querystring like in this example using "link_to" helper, ie specifying "issue[description]" and so on.

http://www.redmine.org/projects/redmine/issues/new?issue[description]=prefilled%20description&issue[custom_field_values][2]=Duplicate

please, can anyone help me?
thanks
Marco

    (1-1/1)