Project

General

Profile

Actions

Defect #17784

closed

Error via REST API for creating an Issue

Added by Leonid E over 10 years ago. Updated about 10 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hello,

I'm sending the following json

{
    "issue": {
        "subject": "subject",
        "status_id": "1",
        "tracker_id": "11",
        "description": "HELLOKITTY",
        "assigned_to_id": "5795",
        "priority_id": 2,
        "custom_fields": [
            {"value": "mail@yeleleo.co.uk","name": "Customer Email","id": 63},
            {"value": "TEST","name": "Job Level","id": 85},
            {"value": "Multiply Markets","name": "Markets","id": 90},
            {"value": "TEST","name": "Company Name","id": 89},
            {"value": "TEST","name": "HQ Address","id": 78},
            {"value": "Travel","name": "Industry","id": 76}
        ]
    }
}

and for some reason getting the folowing error:

{
    "errors": [
        "Subject can't be blank" 
    ]
}

What I'm doing wrong? Subjects included in the request...

Actions

Also available in: Atom PDF