I want to create # of sub-tasks using ScriptRunner query.
E.g. we got 150 Hrs of Estimation and want to create 5 sub-tasks of 30 Hrs estimation each with same title for each sub-task getting created.
This will solve a big administrative time as right now, we have to create this manually.
The user will input following in query
Parent task ID
# of sub-tasks needed
Estimation Hrs for each sub-task (will be same)
type of sub-tasks
Basis on above inputs, query would create the sub-tasks.
The basic "create sub-task" as a one-off can be taken from https://library.adaptavist.com/entity/create-a-sub-task-and-link-to-parent-issue-in-jira - you'll want to embed the "create" in the a loop read from the "# of sub-tasks needed"
For the estimate, from memory, you can use setOriginalEstimate
( <number of milliseconds> ) alongside the other fields you are setting.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.