Fresh terminology for automation rules and components

An automation ‘rule’ is now a ‘flow', and a ‘component’ is now a 'step’. You may notice some inconsistencies in the documentation while we make this change. Read more about the updates in Automation

Use Ansible with Automation

Before you begin

To manage Jira space automations, you must have the appropriate space permissions:

To manage global automations, you’ll need the Administer Jira permission. Learn more about global permissions in Jira Cloud.

In Ansible, make sure you have configured the following settings so your connection works properly:

Integrate your automation flow with Ansible

  1. You can use your existing application in Ansible to connect to Atlassian Automation. If you don’t have an application, create a new one. Read how to create an application in Ansible to get started. Use the details below while creating:
    Redirect URIs: https://id.atlassian.com/outboundAuth/finish
    Client Type: Confidential
    Authorisation Grant Type: Authorisation Code

  2. In Jira Service Management, go to Automation and select Create flow.

  3. Select the Ansible action for your flow. Launch job template in Ansible is the only available action at the moment.

  4. Select Connect to create a connection with Ansible. Connections allow your automation flows to make changes in other tools and products.

  5. In your connection, enter the application information that you wish to connect to Atlassian Automation.

    1. Application name. Provide a unique name to easily identify your Ansible connection. This doesn’t have to be the name of the application, but mentioning the application name with a unique identifier can help. For example, Acme A or Acme B, where Acme is the name of the application and A/B are the unique values.

    2. Client ID. The client ID of the application in Ansible. It’s shown only once after you create an application.

    3. Client secret. The client secret of the application in Ansible. It’s shown only once after you create an application.

    4. Ansible Tower URL. This is usually the URL from the address bar of your browser while you’re in the Ansible Automation Controller.

  6. Select Connect to complete creating your connection.

Launch job template in Ansible

This action supports waiting for response (only for Enterprise plans)

When enabled, the flow will resume only if Ansible returns a success response within 15 minutes. Else, the flow will fail.

You can choose to resume the flow even on failure response, which means even if Ansible doesn’t return a success response within 15 minutes, the flow will resume anyway.

To access the payload from Ansible, you can use the {{ansibleJobTemplate.output}} smart value.

Still need help?

The Atlassian Community is here for you.