Work with Jira Coding Agent in automations
Use Jira Coding Agent in automations to automatically generate code for repetitive tasks at scale so your team can focus on high valuable work.
How Jira Coding Agent works in automations
An automation flow for Jira Coding Agent uses the standard building blocks of Jira automation:
A trigger to kick off the execution of your flow, for example when a work item is updated.
Conditions to narrow the scope of your flow, for example when a specific label is added to the work item.
An action to perform the task you want to automate. With Use Jira Coding Agent action you can add other follow-up actions too.
When a Jira work item meets your flow conditions, the automation runs. The Use Jira Coding Agent action connects the Jira Coding Agent to a repository so it can make code changes and opens a draft pull request. It doesn’t merge the pull request directly, but hands it back to your team for review and merge.
Jira Cloud の自動化の一般的な仕組みをご確認ください。
The Jira Coding Agent runs in a restricted mode in automations and doesn’t use Atlassian Teamwork Graph context. This means that the Jira Coding Agent won’t read Confluence content that the connected user has access to.
Automation flows using the Jira Coding Agent will count towards automation limits of your Jira plan.
Read about Jira plans and pricing
はじめる前に
To create and manage automation flows using the Jira Coding Agent, make sure:
You’re a space admin for the Jira space where you want to create automation flows. Permissions required to manage automation flows
The Jira Coding Agent is available on your site and you can access it.
You’re on a Standard or Premium plan.
You have Rovo credits available. Rovo usage allowance
You must be a Jira space admin to create and manage space automation flows. However, any Jira user can trigger those flows, either manually or when a work item meets the flow’s conditions.
Sessions generated by the Use Jira Coding Agent action are owned by the action’s connection owner. Understand connections in automation
Create an automation flow to generate code
Define your common coding patterns and use the Jira Coding Agent to automatically generate code for repetitive tasks.
Start by automating small, low-risk tasks with the Jira Coding Agent automation actions. As you get comfortable, expand to more scenarios and complex tasks.
To create an automation flow to generate code:
In your Jira space, select More actions () next to your space name, then select Space settings.
サイドバーで [自動化] を選択します。
Select Create flow.
[Add a trigger (トリガーを追加)] でトリガーを選択して設定し、[次へ] を選択します。
Select Add step, then Add an action.
Under Add an action, search for and select Use Jira Coding Agent.
リストから接続済みのリポジトリを選択します。ただし、作業項目の説明にリポジトリの詳細を追加する場合は、[Infer repository from work item (作業項目からリポジトリを推測)] を選択します。
[設定 ()] を選択して、ブランチ名とソース ブランチ、および各自動化の後にプル リクエストの下書きを作成するかどうかを設定します。
In the Prompt field, give the Jira Coding Agent instructions on the code you want to generate.
[次へ] を選択します。
Select Turn on flow.
その他の注意事項
To see when a flow was triggered and code was generated, view the audit log
The time required for the flow to run depends on repository size and complexity of the task.
The connection owner’s Rovo credits are used when the flow runs. What are connections in Automation?
When the flow runs, the Jira Coding Agent makes code changes on a branch and creates a draft pull request in the repository you provided. You can review the pull request directly in the repository, or open the Jira work item and use the repository link under:
[詳細] パネルの [開発] セクション
the Agents section
The Agents section displays all agentic sessions related to that work item, including sessions owned and managed by other users.
Find the Jira Coding Agent for sessions you own to review the changes, make any edits you need, then approve and merge the pull request when you’re ready.
Use smart values
Smart values change the behaviour of flows based on specific criteria. Understand smart values in automation
This means, smart flows can be used in the repository and prompt fields of the Use Jira Coding Agent action.
For example, using the {{issue.labels}} smart value, you could get the Jira Coding Agent to code in one repository or another based on the work item label.
The Use Jira Coding Agent action also outputs smart values to use in other automation steps:
スマート値 | 説明 |
|---|---|
| コーディング セッションの ID |
| リポジトリの URL |
Consider how you might use templates for Jira Coding Agent automations
この内容はお役に立ちましたか?