Project

General

Profile

New issue url to preload some fields

Added by Chris Griffin over 16 years ago

I just upgraded to 7.1. In the previous version 6.x? ( I don't remember) I was able to use a url like: http://my_redmine.com/projects/add_issue/1?tracker_id=1&description="+escape(data); in javascript to open a new window to the new issue page and fill in some information into the description. I use this it automatically log the exact time the page loaded, the name of the page, and many other fun things. Now in 7.1 the url to new issue has changed. How can I get the functionality back that I had before?

Thanks
Chris Griffiin


Replies (3)

RE: New issue url to preload some fields - Added by Thomas Löber over 16 years ago

This should work:

http://myredmine.com/projects/myproject/issues/new?issue[tracker_id]=1&issue[description]=Test

RE: New issue url to preload some fields - Added by clawfrown clawfrown over 16 years ago

That's exactly what I also wanted..
Can somebody please explain how to preload "User.current" into the "assigned_to" field?

RE: New issue url to preload some fields - Added by clawfrown clawfrown over 16 years ago

Well.. I found the way..

http://myredmine.com/projects/myproject/issues/new?issue[assigned_to_id]=<%= User.current.id %>

But I can't get how to fill status_id field..
For example this:

http://myredmine.com/projects/myproject/issues/new?issue[status_id]=2

does not work.. :-(

Also will be very glad if someone can tell me how to include attachments with url (if there is such a functionality in Redmine).

    (1-3/3)