Automation and REST API overview
Jira Automation flows and external systems can use templates without a person choosing a template in the Template field. They can create new work items from a template, or apply a template to an existing work item. For example, a flow can create the same set of work items every week, or fill in a work item when it moves to a status.
Advanced edition
The Automation action and the REST API need the Advanced edition. See App Editions.
Two ways to use templates
- The Use Issue Templates Agent action in Jira Automation. You add it to a flow and choose the template. See Use templates in Jira Automation.
- The REST API. An external system sends a request to the app’s URL with an API token. See Use the REST API and Manage API tokens.
Rules for both
- Both run as a Jira administrator. With the REST API, this is the owner of the API token. With the Automation action, it is the user who made the flow run. That user must hold the Administer Jira permission at the time of the call. To apply a template to an existing work item, the user must also be able to edit that work item.
- They can use templates for work items. They can’t use templates for customer portal.
- They don’t check template restrictions or the Enabled switch, so they can use a restricted or disabled template.
- When they create new work items, the app accepts the request first and creates the work items, and the child work items of a template with a structure, a moment later.
- They use the same fields, variables, and structure as the Template field. See Create a template.
For ready-made scenarios, see Use cases.