Defect #17784

Error via REST API for creating an Issue

Added by Leonid Eletskikh over 3 years ago. Updated about 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:REST API
Target version:-
Resolution:Invalid Affected version:2.3.0

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...

History

#1 Updated by Toshi MARUYAMA about 3 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Please use forum for questions.

Also available in: Atom PDF