Questions tagged [redmine-api]
106 questions
1
vote
1 answer
Accessing the value of custom field in redmine plugin
I am using Redmine 2.1 and I am writing a custom plugin. I am trying to access the value of a custom field on an issue.
def controller_issues_edit_before_save(context = {})
issue = context[:issue]
add_assignee(issue)
end
I am getting…

Rob
- 85
- 8
1
vote
0 answers
Get Redmine-Issues via REST API restricted by 'updated_by' grouped on 'updated_on'
Considering Redmine REST API and http://theadmin.org/articles/redmine-query-reference I found no way to access the 'updated by/on' criteria of an issue.
So, is there any other possibiltiy to build a query that returns all issues that
where updated…

Disc-Addict
- 138
- 12
1
vote
0 answers
Redmine Java Api - org.json.JSONException: A JSONObject text must begin with '{' at character 1
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…

libik
- 22,239
- 9
- 44
- 87
1
vote
2 answers
If return false does not work on Redmine API through kbsali/php-redmine-api
I updated the code with help by @raiserle (thank you).
The code below enables me to show an error message if a user has no right to create an issue or there is connection problem and last but not least if project_id is empty or not valid.
However,…

orko
- 117
- 2
- 11
1
vote
1 answer
Redmine API - Creating Issues
I am trying to use Redmine's API to create issues, but it doesn't seem to let me specify who is submitting the ticket. I have tried getting author_id and it doesn't seem to work.
This is what the JSON data in the POST looks like:
{
…

Jason
- 1,114
- 1
- 10
- 24
1
vote
2 answers
Rails 500 error page - create Redmine issue with rest API
I have a Redmine 2.1.2 server running. In my yet-unported-to-Rails-3 Rails 2 apps, I want to create the 500.html page to have a form that the user can make a Redmine issue about the error, and create it using the Redmine API. However, I'm not sure…

istrasci
- 1,331
- 1
- 18
- 40
0
votes
0 answers
Redmine - upload file to project
I want to upload a file to the "Files" section of a project in Redmine.
I've read the API documentation and were able upload the file and obtain a token with
curl -ik -d "@dummy.txt" -H "Content-Type:application/octet-stream" -X POST…

slarag
- 153
- 8
0
votes
0 answers
Integration Redmine's API in Java
I'm trying to integrate redmine's API, to read the subject from a specific Issue with the Id, but I'm getting a NullPointerException in issueSubject even if the JSON response is not empty.
`public String getIssueById(){
String issueId =…

eliana
- 1
0
votes
1 answer
Redmine API getting errors but I cannot tell what is causing the error
I am using the Redmine API with PHP, which works very well. I've used this code that I'm using right now in the past, and it was fine. All of a sudden now, it's giving me an error, and I don't know exactly what the error is. I have set the logs to…

RickV
- 37
- 3
0
votes
1 answer
Redmine error when editing a task from iOS (delete issue description)
Editing a task from a mobile phone on iOS removes the entire description of the task. Tested on two devices. With the same actions on an Android phone, everything works correctly. Tell me what could be the problem.
Redmine Version:
`
Environment:
…

Pavel Shtanko
- 3
- 2
0
votes
0 answers
When the Redmine task was created using Java, Server Returned '404 Not found' error occurred
Software version:redmine 4.2.40 jdk17
Dependencies:
com.taskadapter
redmine-java-api
1.17
…

Eudora
- 1
0
votes
1 answer
can't create an issue through Redmine API
I am trying to call the API on our Redmine instance (v 4.2.4.stable), and facing some issues despite following the documentation. I am especially interested in creating issues (https://www.redmine.org/projects/redmine/wiki/Rest_Issues).
This is…

Vincent F
- 6,523
- 7
- 37
- 79
0
votes
0 answers
REST api post in redmine with a python script
I am trying to post issues in redmine using the rest API, I am using a python script to do so:
here is my script:
import requests
import json
username = "x"
password = "x"
url = "http://localhost:3000/issues.json"
data = open('rest.json', 'rb')
r…

Ôokami
- 21
- 6
0
votes
0 answers
Upload file to Redmine via its api
I would like to attach a file to an issue via the redmine-api. However, if I run my method I receive an Execution failed for task ...
private void uploadFileToDemoRedmine304651() {
String plainCredentials = "TestTheAPI:Qwert5678";
String…

Beru
- 657
- 1
- 6
- 21
0
votes
1 answer
Can I add a Custom field on a Sprint in Redmine?
I'm using Redmine to develop my app and I need to add a custom field on Sprint. Redmine only allows me to add custom fields on Issues, projects... and not Sprints.
Is there a way to configure it to be able to add a custom field on a Sprint. I am…

Chams Akrout
- 1
- 3