Project

General

Profile

Actions

Defect #28215

closed

Can not create issue via REST API

Added by Francisco Mancardi over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

I'm using redmine on cloud provided by planio.
I'm able to UPDATE an issue SUBJECT, but can not create an ISSUE.
Have tried using this curl

curl 'https://testlinktest.planio.com/issues.json' \
-X POST \
-H 'X-Redmine-API-Key: c1796c2215a55723f134a4c546e9c121' \
-H 'Content-Type: application/json' \
-d '{ "issue": {"subject": "A new issue with LOVE ","project_id": "3"} }'

But I always get:

<errors type="array"><error>Subject cannot be blank</error><error>Project cannot be blank</error><error>Tracker cannot be blank</error><error>Status cannot be blank</error></errors>

Any hint?
any idea?

Actions

Also available in: Atom PDF