Project

General

Profile

Unable to update the status of an Redmine Issue

Added by Biruntha Gnaneswaran over 7 years ago

Hi All,

I'm trying to use Redmine REST API. I'm trying to update the status of an Redmine Issue as follow. But the status is not get updated. What could be the problem?

[1]
PUT /issues/1.json HTTP/1.1
Host: biruntha.m.redmine.org
X-Redmine-API-Key: xxxxxxxxxxxxxxxxxxxxx
ContentType: application/json
Cache-Control: no-cache
Postman-Token: 2aa665f1-3776-922f-d4d8-8ca96c5de46e

{
"issue": {
"subject": "Subject has changed",
"notes": "The subject was changed",
"status_id": "1"
}
}
And also I tried as

[2]
PUT /issues/1.json HTTP/1.1
Host: biruntha.m.redmine.org
X-Redmine-API-Key: xxxxxxxxxxxxxxxxxxxx
ContentType: application/json
Cache-Control: no-cache
Postman-Token: 2921ebac-23e7-69f2-c874-de6eaa3b167f

{
"issue": {
"subject": "Subject has changed",
"notes": "The subject was changed",
"status_id": "Open"
}
}

Thanks,