Extending Redmine's "Issue" to Add Location Data

Added by ian dees over 13 years ago

I'm looking at extending Redmine to support location data for a particular issue. Is there a way I can write a plugin that extends the "Issue" to include lat/lon so I can display a little Google Map with the issue's location? I'd also like to be able to use the "Issues" page to view all issues matching the filter(s) on a map.

I can deal with the maps part, but it didn't look like the Plugin API for Redmine allowed me to extend in just the right way.

Thanks in advance!

Replies (11)

RE: Extending Redmine's "Issue" to Add Location Data - Added by Brad Beattie over 13 years ago

Yeah, I believe it's possible to write a plugin for what you describe.

RE: Extending Redmine's "Issue" to Add Location Data - Added by Darryl Winder about 13 years ago

Ian

did you have any success with this ? We are attempting virtually the same thing at the moment.

RE: Extending Redmine's "Issue" to Add Location Data - Added by ian dees about 13 years ago

I never really tried that hard to do this. How far along are you? What are you using it for?

RE: Extending Redmine's "Issue" to Add Location Data - Added by Darryl Winder about 13 years ago

the requirement is to manage a database of safety hazards (which become redmine tickets) and have contractors acknowledge that they have read the item. we can pass a filtered ticket list to gmaps with a link back from each pin to the relevant ticket for the acknowledgement and we can also create an hazard/issue by clicking on the map and filling in some basic details in a form but just proof of concept at this stage.

RE: Extending Redmine's "Issue" to Add Location Data - Added by ian dees about 13 years ago

Cool. Did you implement it as a plugin or a does it sit on top of Redmine in another way?

RE: Extending Redmine's "Issue" to Add Location Data - Added by Darryl Winder about 13 years ago

at the moment its a bit of a hack and a mixture of plugin and core patch. If the concept flies with the exec team presentation we would hope to do as much as possible in a plug in and then maybe try to beg a change in the redmine trunk if necessary. i think this mod would be generally interesting enough to contribute back to the community.

RE: Extending Redmine's "Issue" to Add Location Data - Added by ian dees about 13 years ago

Did you just add location data to the issue object and add views to do CRUD operations on it?

RE: Extending Redmine's "Issue" to Add Location Data - Added by Darryl Winder about 13 years ago

y - we also found its better to separately keep the entered address and the resolved (or entered) geo-loc as you get some funny effects from round tripping

RE: Extending Redmine's "Issue" to Add Location Data - Added by ian dees about 13 years ago

Can you give me a pointer for the correct spot to start? I don't really understand the plug-in API's method of extending the core models (like the Issue).

RE: Extending Redmine's "Issue" to Add Location Data - Added by ian dees over 12 years ago

Darryl, did you manage to finish your changes to include location data? I am just now thinking about starting this up again.

RE: Extending Redmine's "Issue" to Add Location Data - Added by Michael Greifeneder over 11 years ago

Any information about a progress available? Maybe a link to a ticket, source code, plugin?

(1-11/11)