Project

General

Profile

Actions

Defect #29128

open

API: Issue Relation create does not work

Added by Eser Esen almost 6 years ago. Updated almost 6 years ago.

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

0%

Estimated time:
Resolution:
Affected version:

Description

using postman /issues/15658/relations.json

with headers

  • Content-Type:application/json
  • X-Redmine-API-Key:...

and payload

{
    "relations": [
        {
            "issue_id":"15657",
            "relation_type":"follows",
            "delay": 0
        }
    ]
}

always returns 422 with error message

{
    "errors": [
        "Related issue cannot be blank" 
    ]
}

what is wrong here, i tried mulitple structures. API documentation for issue relation is very unclear about that.

Actions

Also available in: Atom PDF