Scriptrunner rest end point - create issue and linked subtasks

Veera rdy March 9, 2018

Hello,

I would like to create a rest end point in scriptrunner. This should accept Jira issue fields and its subtask fields as well.

 

I've seen the below examples, but they only talk about creating issues. Is it possible to create subtasks using the script rest end points?  Please advice.

https://community.atlassian.com/t5/Jira-questions/Scriptrunner-rest-end-point-create-issue/qaq-p/670374 

https://community.atlassian.com/t5/Jira-questions/How-to-create-issues-in-jira-programmatically-inside-a-listener/qaq-p/352020

Can you please provide a sample code to create issue and its subsequent subtasks.

Thanks.

1 answer

1 vote
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.
March 9, 2018

Kindly read the following thread

https://community.atlassian.com/t5/Jira-questions/Scriptrunner-rest-end-point-create-issue/qaq-p/670374

You will find out how to pass parameters to a rest point and how to work with them.

Then read the following thread

https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-auto-create-multiple-subtasks-in-JIRA-by-groovy/qaq-p/559686

You will find out how to create subtask.

Then merge your knowledge.

Veera rdy March 14, 2018

Thanks for the input Alexey, I'm constructing the rest end point.

Suggest an answer

Log in or Sign up to answer