- Configuration
- First steps
- Project setup
- Sample templates
- Migration to Cloud
- Supported fields
- Permissions
- Jira Service Management
- Template management
- Create a template
- Template configuration
- Variables
- Template Navigator
- Delete a template
- Use as a template
- Set of Fields - advanced features
- Using template
- Autocomplete
- Default Template
- Apply template
- Use Template in Jira Automation
- Automatic create and close
- JQL Searchers
- Direct links
- Create Structure post function
- About Create Structure
- Create Structure configuration
- App integrations
- REST API
- ScriptRunner and Groovy scripts
Create new issue mode
Learn how to create new issues in different projects using templates
In some cases it’s convenient to create an issue that triggers a specific process in a different project (often handled by a different team). Create Structure allows you to create another task or a whole epic structure in a different project and link it with the original issue, so that the connection is visible for everyone.
An epic organizing new members’ onboarding within an HR team can create another epic - for the IT department, to prepare all necessary equipment for the new employee.
You’ll find more information about the post function parameteres and all possible configuration modes in the Create Structure configuration chapter.
Choose target project and issue type
Before you start configuring the post function, choose the target project and issue type under Context in the template’s configuration.
Steps
To set up a template to create issues in a different project:
- Go to your Template Repository project and select your template.
- Open the Context tab.
- Under Target project and issue type, select the project where the linked issues should be created.
- Choose the issue type of the new issue that should be created by your template in the target project.
Result
Your template is ready to be used for creating linked issues of the chosen issue type in the target project.
Create new issue (inherit template)
After choosing the target project and issue type, you need to add and configure the Create Structure post function.
The standard configuration includes a template that’s inherited from current issue (which means that the template can be chosen on the screen when the issue gets created or modified).
Steps
To create issues from template in a different project:
- Add the Create Structure post function to the first workflow transition (Create).
- Select Create new issue as the Operation mode.
- Select Inherit from current issue in the Template field.
- Select the Issue linking type (choose how the current issue should be linked with the issue being created in a different project).
- Leave the default value for Subtask stage as none.
- Click Add.
You may choose not to create any Issue linking, but it’s a good idea to always link your current issue with the one being created from template. This way you’ll be able to find it easily afterwards and make the issue relationship visible to everyone.
Remember to add the Template custom field to the relevant screen.
Result
When the current issue gets created, another issue or a set of linked issues is created in the target project. The template can be chosen each time.
Create new issue (fixed template)
Second possible configuration is to choose one specific template to always be applied to the new issue that’s being created in the different project.
Remember to choose the target project and issue type beforehand.
Steps
To create linked issues from a fixed template:
- Add the Create Structure post function to the first workflow transition (Create).
- Select Create new issue as the Operation mode.
- Select the proper template from the drop-down list in the Template field.
- Select the Issue linking type (choose how the current issue should be linked with the issue being created in a different project).
- Leave the default value for Subtask stage as none.
- Click Add.
Result
When the current issue gets created, another issue or a set of linked issues is created in the target project. The template selected in the post function configuration is applied every time and can’t be changed.
Next steps
- To learn how to simply apply templates to new issues, go to Modify current issue.
- To learn how to schedule additional subtasks to be created during a different transition, see Create subtasks during transition.
- If you need to optimize Jira performance while creating a large structure of linked issues, check out Execute post function asynchronously.
- To analyze a real-life example, read our Use case.
If you can’t find the answer you need in our documentation, raise a support request.