Setting relations via REST API

Added by Andrew Bayly almost 5 years ago

I'm trying to set a relation between issues using the rest api. The issue states that it has been updated, however no relationship appears. This is the api that I am using

{
"issue": {
"relations":[{"id":null, "delay":null,"issue_to_id":1157,"issue_id":1624,"relation_type":"relates"}]
}
}

Thanks in advance

Replies (1)

RE: Setting relations via REST API - Added by Andrew Bayly almost 5 years ago

I was able to figure out my problem. For future users here is how
from http://www.redmine.org/projects/redmine/wiki/Rest_IssueRelations

POST /issues/*number*/relations.json {
relation: {
"issue_to_id" : id
"relation_type" : "relates"
}
}

(1-1/1)