Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
2
-
2
-
Description
NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.
As a REST caller, I want to be able to convert an issue to a subtask.
In the UI, this is always done as a specific action, instead of via an "edit" of the issue type in an edit or transition. This would need to be the case in REST, as well.
We need an endpoint like /rest/api/2/issue/idOrKey/convertToSubtask that performs this operation (and a companion that converts a subtask to an issue). We also need to provide the "editmeta" for the conversion, as the user may need to enter required fields (and/or there may be other new fields that the user should get an opportunity to fill, like in the UI).
Original description
I can't find a way to convert an issue into a subtask.
Here is my json:
{ "fields": { "parent": { "key": "TESTUN-3464" }, "issuetype": { "id": "5" } } }
Answer:
{"errorMessages":[],"errors":{"issuetype":"Issue type is a sub-task but parent issue key or id not specified."}}
Am I doing something wrong ?
Thanks for your help.
Attachments
Issue Links
- incorporates
-
JRASERVER-33927 Allow ability to change IssueType for issue with rest api
- Closed
- is related to
-
JRASERVER-44015 REST API issueLink should not accept jira_subtask_link type
- Closed
- relates to
-
JRACLOUD-27893 Enable conversion of issue to subtask via REST
- Gathering Interest