Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create an issue with subtask through rest api

singh longjam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 7, 2018

I want to know if there is a REST API to create an issue along with sub-task at one REST API call. 

can JIRA take care of the associated parent key to the subtask when an issue is created.

example:

Create_Issue_API

{

  project key : JIRA-TEST

  fields:{

   }

  subtask

  {

     parentkey : ( auto assigned in the JIRA server side when parentkey is passed as null )

     project key: JIRA-TEST

    fields{

     }

  }

}

 

can this be achieved?

 

Thanks in advance.

1 answer

0 votes
Mauricio Karas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2018

Hey, Singh.

Unfortunately, there is no REST API call to do this. You need to first create the parent issue, get its key, then make another call to create the subtask with the parent key.

Kind regards,
Maurício Karas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events