redmine-api

How to Fix '422 Unprocessable Entity' when sending a POST request to Redmine API?

不想你离开。 提交于 2021-02-10 05:58:26
问题 I am trying to create a wiki page using redmine rest api. The Authentication was succeeded, however the wiki page is not being created because of a 422 error. The Redmine documentation says: "When trying to create or update an object with invalid or missing attribute parameters, you will get a 422 Unprocessable Entity response. That means that the object could not be created or updated." But I can seem to find out where I have mess up. The PROBLEM CAME UP WHEN I DID THE SECOND REQUEST- "PUT

Fetch value from Redmine Custom Custom field

微笑、不失礼 提交于 2019-12-25 03:36:27
问题 I have created custom field in redmine wher we type the client phone number manually.Also written a ruby code in redmine custom workflow to send sms to client when ticket id is raised.In the code I can type phone number but i actually want to fetch that phone number which we type before creating the new issue..So how do i fetch the value of phone number from the custom field and link it to the code? Please suggest me 回答1: IssueCustomField.where("field = 8 AND value like '+31%'") Replace the

Redmine Java Api - org.json.JSONException: A JSONObject text must begin with '{' at character 1

寵の児 提交于 2019-12-04 18:12:18
When I try run this code (The Issue example is taken from this web http://www.redmine.org/projects/redmine/wiki/Rest_api_with_java ) : RedmineManager redmineManager = new RedmineManager("http://something.cz", "somekey"); //I changed these two parameters for security reasons when paste here System.out.println(redmineManager.getProjects().size()); //this works fine Issue issueToCreate = new Issue(); issueToCreate.setSubject("This is the summary line 123"); Issue newIssue = redmineManager.createIssue("test-project", issueToCreate); //this line throws exception It ends with this exception