Forums

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

How to create sub-task in JIRA using REST API along with parent issue.

Prabu N July 3, 2018

I am able to create parent and sub-task with below format json using VBA.

p1.png

But, my requirement is to create parent and sub-task together.

So, I will not be able to provide the id/key for the parent, since it will be exist at the time of creation.

 

Need to find a way to refer the parent which is not created yet.

I tried to use various other formats; but no found solution yet.

Anyone can help?

 

2 answers

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2018

Hello,

You need to do two rest calls:

1. You create the parent issue

2. You create a child issue.

Prabu N July 3, 2018

Thanks for the response.

 

Yes. That is the only workaround available.

In my requirement, i need to push the tasks together. input format like below:
p2.png

Looking for some better way. (Don't want to make 2 calls)

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2018

If you want to make a rest call, you would need to develop your own solution. You either make two Rest Calls and use out of the box Rest Api, or you develop your custom Rest Endpoint.

0 votes
Prabu N July 3, 2018

This is possible using CSV (using below mapping).

p2.png

But I cannot use CSV; need to create bulk tasks using REST API only.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events