python-redmine
python-redmine copied to clipboard
Is it possible to integrate a "geojson" parameter in issue creation?
Hello,
I was wondering if it is possible to customize the input fields of issues on GitHub to integrate a new parameter "geojson". This parameter comes from the extension "gtt" and creates issues with a query like the one below:
Parameters: {"utf8"=>"✓", "authenticity_token"=>"AxGTuHD2k0SBh3BJgdq1zYRDb0OSKAi0EKcz9Q/Lc3QeMRg6YNvhXbchzkq0dB+36h9zjAwJxIAVSE/CpVsK8g==", "issue"=>{"geojson"=>"{"type":"Feature","geometry":{"type":"Point","coordinates":[623.3052415336314,-32.712499199145796]},"properties":null}", "is_private"=>"0", "project_id"=>"24", "tracker_id"=>"3", "subject"=>"test", "description"=>"", "status_id"=>"1", "priority_id"=>"2", "assigned_to_id"=>"", "parent_issue_id"=>"", "start_date"=>"2023-05-03", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "watcher_user_ids"=>[""]}, "form_update_triggered_by"=>"", "issue_template"=>"", "template_search_filter"=>"", "was_default_status"=>"1", "commit"=>"Créer", "project_id"=>"monprojet"}
Thank you for your help!
Hi @OoYomguioO
Have you tried passing it as dict ?
redmine.issue.create(subject='foo', status_id=1, geojson={"type":"Feature","geometry":{"type":"Point","coordinates":[623.3052415336314,-32.712499199145796]},"properties":null})
Closing this due to inactivity.