lib/redminerest.rb
# The structure of the issue_obj Hash is specified here:
#     http://www.redmine.org/projects/redmine/wiki/Rest_Issues
#
# Returns the ID of the newly created issue.


Returns the ID of the newly created issue.
Returns the ID of the newly created issue .
def post_issue(issue_obj)
    @endpoint = "/issues.json"
    setup_post
    @req_obj = {"issue" => issue_obj}
    req_obj_to_json_body
    res = @http.request(@req)
    return JSON.load(res.body)["issue"]["id"]
  end
def post_issue ( issue_obj ) @endpoint = "/issues.json" setup_post @req_obj = { "issue" => issue_obj } req_obj_to_json_body res = @http . request ( @req ) return JSON . load ( res . body ) [ "issue" ] [ "id" ] end
The structure of the issue_obj Hash is specified here:
http://www.redmine.org/projects/redmine/wiki/Rest_Issues
The structure of the issue_obj Hash is specified here : http : // www . redmine . org / projects / redmine / wiki / Rest_Issues
issue_obj