The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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

TAGS
AUG Leaders

Atlassian Community Events