Project

General

Profile

Actions

Defect #18834

closed

parent_issue_id in REST API request does not work

Added by Nikolay Didenko over 9 years ago. Updated over 9 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

I am trying to create ticket with parent ticket.

First of all i am creating parent ticket:

cat $TMPNAM
{
  "issue": {
"project_id": "rugion",
"tracker_id": 5,
"priority_id": 6,
"subject": "TEST ticket",
"description": "test ticket",
"category_id": 90,
"fixed_version_id": 390,
"assigned_to_id": 61,
"parent_issue_id": "28173",
"custom_fields":
[
...skipped...
]
  }
}

curl -k -s -H "Content-Type: application/json" -X POST --data "`cat ${TMPNAM}`" -H "X-Redmine-API-Key: ...skipped..." https://redmine.dev.rugion.ru/issues.json

{"issue":{"id":28181, ....}

Getting this issue.id value i am creating child of this ticket like this:

cat $TMPNAM
{
  "issue": {
    "project_id": "rugion",
    "tracker_id": 5,
    "priority_id": 6,
    "subject": "TEST ticket 2",
    "description": "Test ticket 2",
    "category_id": 90,
    "fixed_version_id": 390,
    "assigned_to_id": 61,
    "parent_issue_id": 28181,
    "custom_fields":
    [
    ...skipped...
    ]
  }
}

curl -k -s -H "Content-Type: application/json" -X POST --data "`cat ${TMPNAM}`" -H "X-Redmine-API-Key: ...skipped..." https://redmine.dev.rugion.ru/issues.json

{"issue":{"id":28182, ....}

As a result i get two tickets without any relations.

I expect that ticket 28182 will be a child of ticket 28181.

PS: It was checked in versions 2.6.0 and 2.6.1.

Actions #1

Updated by Nikolay Didenko over 9 years ago

  • Status changed from New to Resolved

Sorry for disturbing.
It was my fault. This action should be enabled via ACL for this user. This checkbox was unset.

Actions #2

Updated by Toshi MARUYAMA over 9 years ago

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

Thank you for your feedback.

Actions

Also available in: Atom PDF