Jira Cloud: How to create a user-specified number of issues in JMWE
JMWE can generate a specified number of cloned work items based on a user-defined value in a field. This functionality allows for greater flexibility in managing tasks and resources. Users can customize the cloning process to meet their specific needs.
Instructions
This can be achieved via workflow transitions or Event-based actions.
If using an Event-based action, create an Issue Field Value Changed event that listens for changes to the number field used to specify the number of issues created.
If using a workflow transition, and the specific transition does not exist, create a new transition.
If the work item creation can be invoked at any time, use a workflow transition from “any status” to “itself.” This will ensure the status remains the same post-transition.
If the cloned work item creation can only be performed while the current issue is in a specific status without changing it, use a workflow transition from the specific status to “itself.”
Add a JMWE Create issue(s) post function, and use the following script as the iterator:
{{ range(1, issue.fields.customfield_12345 + 1) }}
This will create a set number of issues numbered from 1 to the number specified in the issue field.
Replace customfield_12345 in Step 3 with the appropriate custom field ID in your Jira instance.