def save(attrs, path = url)
      begin
        save_status = save!(attrs, path)
      rescue JIRA::HTTPError => exception
        begin
          set_attrs_from_response(exception.response) # Merge error status generated by JIRA REST API
        rescue JSON::ParserError => parse_exception
          set_attrs('exception' => {
                      'class' => exception.response.class.name,
                      'code' => exception.response.code,
                      'message' => exception.response.message
                    })
        end
        # raise exception
        save_status = false
      end
      save_status
    end
def save(attrs, path = url)
      begin
        save_status = save!(attrs, path)
      rescue JIRA::HTTPError => exception
        begin
          set_attrs_from_response(exception.response) # Merge error status generated by JIRA REST API
        rescue JSON::ParserError => parse_exception
          set_attrs('exception' => {
                      'class' => exception.response.class.name,
                      'code' => exception.response.code,
                      'message' => exception.response.message
                    })
        end
        # raise exception
        save_status = false
      end
      save_status
    end
Saves the specified resource attributes by sending either a POST or PUT
 request to JIRA, depending on resource.new_record?

 Accepts an attributes hash of the values to be saved. Will return false
 if the request fails.