- 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 Structure configuration
Learn the basic post function configuration and get an overview of more advanced options
Add post function
First of all, you’ll need to add the Create Structure post function to your project’s workflow. Here is a short guide with all the basic steps. Different post function modes will be described in the next chapters.
Please remember that using templates requires some initial configuration. Read our use case to see how it works in a real life example.
Steps
To add the Create Structure post function to a project’s workflow:
- Go to Project settings > Workflows.
- Select the workflow and go to Diagram > Edit.
- Click on the transition of your choice (in most cases: Create) and go to post functions.
- Click Add post function and select Deviniti [Issue Templates] - Create Structure.
- Choose the post function parameters and click Add.
Tip
For simple cases we recommend leaving the default attributes unchanged. To learn about more complex use cases, go to Possible configurations.
- Publish the changes.
- Go to Project settings > Screens and select your project’s Create Issue Screen.
- Add the Template field.
- Create a new issue.
- Select an Issue Type.
- Select the Template from the drop-down list.
- Fill in other fields and click Create.
Result
The template is applied to the newly created issue. All template’s subtasks and linked issues got created as well.
Make sure that the Create Structure post function is listed under the step Creates issue originally and before Re-index an issue to keep indexes in sync with the database. Otherwise, it might not work.
Post function parameters
Parameter | Possible values | Description | Additional information |
---|---|---|---|
Operation mode | Modify current issue | Templates can be applied to issues created in the current project. Users can select a template from the Template custom field on the Create Issue (or any other) screen but they don’t have to. | Default setting for most standard cases. The Template custom field needs to be added to the proper screen. |
Create new issue | Templates create issues in different projects. | The target project needs to be defined in the template’s Context configuration. | |
Template | Inherit from current template | A template can be selected every time an issue is created or modified. Available templates are listed in a custom field on the Create or Edit issue screen. All settings are inherited from the template currently selected in the Template custom field. | Default |
Choose a fixed template | One particular template is always applied to issues created in the current project. The template can’t be changed or removed. If the template has any subtasks, they will be created every time as well. | The list contains Template names that are configured under Template Details > General. | |
Issue linking | Do not create link | No link is created between the issue created in the different project and the one created in the current project. | Default |
Choose a fixed link type | Issue created in a different project is linked to the issue created from the same template in the current project. The chosen type of link is applied every time. Both outward and inward links are generated. | The list of links matches your global Jira configuration that you can set up under Issues > Issue linking. Learn more | |
Subtask stage | None | No additional subtasks are created in the workflow. | Default |
Choose one of the available stages | A subtask with the chosen stage will be created from template during transition. | The subtask must be configured beforehand. Learn more | |
Execute asynchronously | False | All linked issues are created at once, in the same thread as the current issue. | Default |
True | Linked issues are created one by one in the background. | This setting improves Jira performance while creating large structures. Learn more |
Possible configurations
By combining the Operation mode with the Template source we get four basic configurations. This short summary should help you choose a setup that works best for you. More details will follow in the next chapters.
- default mode for most standard cases
- templates can be applied to newly created issues within the workflow
- users can change the template in the Template field on the screen
- all settings are inherited from the template that is currently selected in the Template custom field
- perfect for automated workflows where one template is always applied to certain issue types
- template that is chosen in the postfunction configuration will always be applied to issues created in this workflow
- the template can’t be changed
- best for creating linked issues in different projects
- template can be changed in the Template field
- recommended for automated, repetitive processes
- most useful for creating linked issues in different projects
- selected template will always be applied when the issue passes the transition
- users have no control over the issue creation and can neither change nor remove the template
The issues created from the structure can have any issue type available in the target project. There are two ways to define that:
- Choose the issue type while creating each template in the structure.
OR
- Specify the issue type under Template details > Context.
Remember to add the chosen issue type to the Template Repository (TEMP) project and to the target project.
Next steps
- If you want to apply a template to the same issue that’s being created, use the Modify current issue mode.
- If you want to create a linked issue in a different project, use the Create new issue mode.
- If you want to create additional subtasks automatically on a workflow transition, go to Create subtasks during transition.
- To improve Jira performance while using this post function, check out Execute postfunction 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.