Jira Cloud Automation Rules and Integrations

By Sruthy

By Sruthy

Sruthy, with her 10+ years of experience, is a dynamic professional who seamlessly blends her creative soul with technical prowess. With a Technical Degree in Graphics Design and Communications and a Bachelor’s Degree in Electronics and Communication, she brings a unique combination of artistic flair…

Learn about our editorial policies.
Updated April 24, 2025
Edited by Kamila

Edited by Kamila

Kamila is an AI-based technical expert, author, and trainer with a Master’s degree in CRM. She has over 15 years of work experience in several top-notch IT companies. She has published more than 500 articles on various Software Testing Related Topics, Programming Languages, AI Concepts,…

Learn about our editorial policies.

Streamline workflows, reduce manual tasks, and quickly boost developer productivity with Jira Cloud Automation. Explore more about its integration with GitHub and Confluence Cloud in detail:

In this last tutorial of the Jira Cloud Administration Series, we will look at how Automation in Jira works, which helps every developer avoid repetitive manual tasks. We will also look at the integration of Jira Cloud with GitHub and Confluence Cloud.

Automation in Jira helps to remove the need to perform repetitive manual tasks by automating the process and workflows.

Basics of Jira Cloud Automation

Jira Software Cloud Administration part 4

Suggested Read =>> JIRA with Katalon Studio

Jira Cloud has a rule builder with which one can configure automation rules based on criteria that you will be setting.

Automation rules are made up of 3 parts

  • Triggers that help to kick off the rule. Every rule starts with a trigger
Triggers
  • Conditions to refine the rules defined or narrow the scope. These must be met else the rule will stop running.
Conditions to refine the rules defined1 Jira Cloud Automation

E.g., set criteria if Status = In Progress, then only proceed.

  • Actions performed the task, such as editing issues, assigning issues, creating sub-tasks, etc.
Actions perform the task such as editing issue
  • Audit log: Every rule has an audit log to look at the results of the execution.
Audit log

In the next section, we will look at common use cases of how automation in Jira works.

Example #1: Auto-create Sub-tasks when a Story issue is created

In this example, we will see how to automatically create sub-tasks when a Story issue is created.

As a Jira administrator, go to Project Settings -> Automation. Create a new rule.

Auto create sub-tasks

Find the issue created trigger from the list.

Find the Issue created
Issue created

Click Save.

Add a New condition.

Add a New condition

Click on the Issue field condition.

Issue fields condition

Select the Issue type field and the value is Story. Click Save.

Select Issue type field

Next, add New action.

add New action

Select Create sub-tasks.

Create sub-tasks

Add all sub-tasks and click on Save.

Add all sub-tasks and Save

Turn the rule ON.

Test the rule: Create a Story issue in the project and look at the sub-tasks created automatically.

Test the rule

To restrict the scope to a single project, select the Rule details and select the scope to a single project.

Select the scope to a single project

Click on Save.

Example #2: Automatically Close Parent Issue When all Linked Sub-tasks are Closed

Start to create a new trigger in the project. Go to Project Settings -> Automation -> Create Rule

Select the New Trigger as Issue Transitioned.

Issue Transitioned

Select To status to Done.

Click on Save.

Save

Select New Condition.

Select New Condition

Select Issue fields condition.

Select Issue fields condition2

Select Issue type field and value equals Sub-task. Click on Save.

Value equals Sub-task

Click on Save.

Click on New Branch. Here we mention what needs to be done for the Parent issue. In this case, it will transition to Done status.

New Branch

Select Branch rule / related issues. Select Parent from the Type of related issues. Click Save.

Select Branch rule

Select New condition->Related issues condition

Select New condition

Select the values as shown. We are checking for the status of each sub-task and if it is transitioned to Done. Click on Save.

status of each sub-task

Click on New action

New action

Select Transition issue.

Select Transition issue

Set Destination status to ‘Copy from trigger issue’. Click on Save

Copy from trigger issue

Click Save.

Publish changes Or Provide a name and switch the rule ON

Test the scenario. In the example, the Sub-task is at the In progress status and also the Story is in In progress status.

Transition each Sub-task to Done and you see that even the Story is transitioned to Done status.

Transition each of Sub-task to Done
Transition each of Sub-task to Done2

Example #3: Transition Status of Epic When one or all of the Story Issue Status Changes or Even Linked Issues.

The below automation is to keep Epic and Story status in sync. So, if any or all of the linked story status changes to In progress change the status of Epic also to In progress.

Create a new rule.

Select Issue transitioned.

Issue transitioned

Select To status as In progress and click on Save.

Select To status as In progress

Select New Branch.

Select New Branch

Select Branch rule / related issues

Select Branch rule - related issues

Select Epic (Parent) in the Type of related issues and click on Save.

Select Epic (Parent)

Select New condition.

Select New condition ex3

Select Issue fields condition,

Select Issue field condition

Status equals To Do. Click on Save.

Status equals To Do

Click on New condition.

Click on New condition

Select Related Issues condition.

Select Related issues condition

Select as shown. Click on Save.

relate issue condition

Click on New action -> Transition issue.

Transition issue
New action

Transition issue to Copy from trigger issue. Click on Save.

Transition issue to Copy from trigger issue

Provide a name and click on Turn it on.

Provide a name

To test the rule, here is an Epic with 2 Story items created. Mark anyone’s Story to In Progress and look at the status of the Epic changing to In Progress.

Provide a name

Change the status of any one story and the status of the Epic will transition to In Progress.

Change status of any one story

Example #4: Auto-assign Issues to Who Created it

The automation will help to auto-assign issues to who created it.

Create a new automation rule in the project. Select Issue created. Click Save.

Auto assign issues

Select New condition.

Select New Condition ex7

Select Issue fields condition.

Select Issue field condition

Select the option Assignee is empty. Click Save.

Select option Assignee is empty

Select New action. Assign the issue to the user who created the issue.

Select New action

Select Assign issue.

Select Assign issue
Select Assign issue2

Click Save.

Provide a name to the rule and Turn it on.

Provide a name
Automation

Test the rule. Create a new Story issue.

new Story issue.

Click on Create. Check the Assignee field.

Assignee field.

Example #5: Update Due Date for High Priority Issues Created

The automation rule updates the due date of the issue to 3 days from the date of creation.

Create automation rule in the project and select Issue created. Click Save.

Create automation rule

Select New condition,

select new condition ex5

Select issue fields condition.

Select issue fields condition ex5

Select the field Priority equals High. Click Save.

Select field Priority equals High

Add one more condition to run the rule only for Story issues.

Story issues

Select the Issue field condition

Select Issue fields condition

Select Issue type equals Story. Click on Save.

Select Issue type equals Story

Select New action.

Select New action ex5

Select Edit issue.

Select Edit issue

Choose Due date field.

Choose Due date field

Enter the value of the Due date as {{now.plusDays(3)}}. The documentation for these smart values can be found @ Examples of using smart values with dates | Cloud automation Cloud | Atlassian Support

Click Save.

due date

Add a name and Turn on the rule.

Add a name

Test the rule. Create a Story and update the Priority to High.

Create a Story and update the Priority to High1 Jira Cloud Automation

Click Create.

The due date is automatically updated

Due date is automatically updated1 Jira Cloud Automation

Example #6: Copy the Assignee of Epic to Story

The automation rule copies Epic’s assignee to the linked Story issue.

Create an automation rule in the project select Issue created and click on Save.

Issue created

Select New condition -> Related issues condition.

Select New condition Related issues condition
Select New condition

Click Save.

Click on New Action.

Click on New action ex6

Select Edit issue.

Select Edit issue ex6

Select Assignee.

Select Assignee

Select value Copy from Epic. Click on Save.

Select value Copy from Epic

Enter a name for the rule and Turn it on.

Enter an name for the rule

Test the rule. Create an Epic, update the Assignee field, and create a linked Story issue.

Epic with the assignee.

Test the rule ex6
Test the rule ex6_2

Click on Create an issue in epic.

Click on Create a issue in epic

The assignee in the Story issue is auto-updated.

The assignee in Story issue is auto updated

Example #7: Commit in GitHub will Transition the Jira Issue From To Do to In Progress

The example will show when a Commit is done in GitHub will transition the Jira issue from To Do to In Progress.

Since I will use connect to GitHub repo, ensure that the GitHub for Jira app is installed.

Commit in GitHub

As Jira admin go to System -> Apps

System Apps

Click on GitHub -> Configure integration -> Connect GitHub organization

github

Click on the Connect button next to the Org

Click on Connect button

You should see a Finished message.

Finished message

Create a rule in the project. Select Commit Created and Save.

Create a rule in the project

Select New Condition.

Select New Condition ex7

Select Issue fields condition.

Select Issue fields condition ex7

Select Status equals To Do. Click on Save.

Status equals To Do

Select New action.

Select New action ex7

Select Transition issue.

Select Transition issue ex7

Select Destination status to In Progress. Click on Save.

Select Destination status

Name the rule and switch it ON.

Name the rule

Test the Rule

Sample issue in To-Do status

Sample issue in To Do status

In GitHub perform a commit with the Jira issue id.

commit with the Jira issue id.

Status changes to In Progress.

Status changes to In Progress

Suggested Reading => Open Source and Commercial JIRA Alternatives/Competitor

Example #8: PR in GitHub will Transition the Jira Issue From To Do to In Progress and Add a Comment to the Jira Issue

Create a rule in the project and select the Pull request created

Example 8 – PR in GitHub

Click on Save.

Click on save ex8

Select New action.

Select New action ex8

Select Comment on issue.

Select Comment on issue ex8

Add the below in the comment box.

A pull request has been created, “{{pullRequest.title}}”, click on the link {{pullRequest.url}}

Click on Save.

comment box

Select New condition.

Select New condition ex8

Select Issue fields condition.

Select Issue fields condition ex8

Status equals To Do and click on Save.

Status equals To Do

Click on New action.

Click on New action ex8

Select Transition issue.

Select Transition issue ex8

Destination status = In Progress

Click on save.

Click on save _ ex8

Name the rule and switch it On.

Name the rule

Test the rule.

Sample issue in To-Do status.

Sample issue in To Do status.

In GitHub raise a PR and, in the description, provide the Jira issue key.

GitHub raise a PR

Do not Merge yet. Check the issue in Jira for the comment added and transition status.

Check the issue in Jira for the comment
Check the issue

Also Read =>> Guide on Jira Cloud Migration Assistant

Example #9: PR Merged in GitHub Will Transition the Jira Issue From In Progress to Done

Create a rule in the project and select Pull request merged.

PR merged in GitHub
PR merged in GitHub2

Add New condition -> If / else block

Add New condition If else block

Select Condition type -> Related issues condition

Select Condition type
Select Condition type

Integrate Jira and GitHub (Cloud)

Integrating Jira and GitHub helps connect your code to the project in Jira. All the updates about code commits, branches, and pull requests can be seen within a Jira issue.

Developers using GitHub can use Smart Commits (https://support.atlassian.com/jira-software-cloud/docs/process-issues-with-smart-commits/ ) to transition issues, add comments to the issues, and also add time tracking information.

To use the integration, install the FREE GitHub app from https://marketplace.atlassian.com/apps/1219592/github-for-jira?tab=overview&hosting=cloud

Integrate Jira and GitHub

Configure the integration

As a Jira administrator go to Settings -> Manage Apps

As a Jira administrator go to Settings

Click on GitHub->Configure Integration

Click on GitHubConfigure Integration

Click on Connect GitHub Organization

Authorize Jira

Authorize Jira

Click on Install GitHub for Jira on a new Organization

Install GitHub for Jira

Select the Org

Select the Org
install jira

Click Install.

Click Install.

Click Connect.

Refresh the integration screen in Jira and you should see the details as shown.

Refresh the integration screen in Jira

Similarly, in GitHub go to the Settings of the Organization and click on GitHub Apps to view the integration with Jira.

GitHub Apps

Test the integration

Make changes to the source code and add a Smart Commit as below

FSP-31 #In-Progress #Comment Working on the issue

Test the integration

Click on Commit changes.

Go Back to the Jira issue and look at the Status, Comment and Commit details.

Go Back to the Jira issue

Click on Commits below Development.

Click on Commits below Development

Suggested Read => Creating Jira Dashboard Quickly

Jira and Confluence Cloud Integration

Confluence is a web-based collaboration wiki tool where you create and organize work in one place.

In this section, we will look at how Jira and Confluence can be integrated seamlessly. Jira and Confluence work together to keep all of the team’s knowledge in one place which helps to manage agile projects. Specific examples could be creating sprint reports or release notes by including issues created in Jira directly into Confluence.

To setup the integration in Jira Cloud go to Settings -> Products -> Application Links

Jira and Confluence Cloud Integration

Add the URL of Confluence and Create a new link.

Create a new link
review link

Click on Continue.

Click on Continue.

Again, click on Continue.

Again, click on Continue

Vice versa in the Confluence cloud the application link is created as well.

Confluence cloud

Test the integration to display Jira issues in Confluence.

To test the integration in Confluence, create a new page in a space and insert the Jira macro.

Test the integration to display Jira issues in Confluence1 Jira Cloud Automation

Add a simple filter to pull all Story issues and click on Search.

project = SSP and issuetype = Story

summary

Click on Insert.

Click on Insert.

Click on Publish.

Click on Publish.

Jira Charts

Create a Blank page and insert the Jira macro.

Click on the Jira Charts link

Click on Jira Charts link

Add a JQL Query and click on Preview. Select the Display options and click on Insert.

Add a JQL Query
Add a JQL Query2

Click on Publish.

Create Jira issues from Confluence.

The integration also allows you to create Jira issues directly from Confluence. To do so highlight the text and click on + Create issue.

Create Jira issues from Confluence

Select the project and issue type. Click on Create.

Select the project and issue type

Click on the link [FSP-11] to view the issue in Jira.

Click on the link [FSP-11] to view the issue in Jira
Click on the link

Create charts and reports in Confluence.

Using the integration, we will look at how to create charts and reports in Confluence from Jira issues.

In Confluence click on Templates and select the Jira report. Click on Use.

Create charts and reports in Confluence

Let’s select the Change log to list all the Jira issues. Click on Next.

select the Change log to list all the Jira issues

After selecting the project click on Switch to Advanced.

After selecting the project

Enter a JQL query and click on Create.

Enter a JQL query

The Jira report page is displayed with the list of Jira issues. Other information like Summary, highlights, etc can be added. Click on Publish.

Jira report page

Published page.

Published page.

Create Status report

The integration also allows you to create a status report using Pie charts with Status, Component, Priority, and Issue Type.

To create a Status report again use the Jira reports template. This time select the Status report. Click on Next.

Create Status report

Select the project and click on Switch to advanced.

click on Switch to advanced

Enter JQL query to list all Story issues. Click on Create.

Enter JQL query
Enter JQL query

Click on Publish.

Conclusion

In this last part of the series, we looked at the most important aspect, which is automation areas to avoid most of the manual activities, which will help every developer to be more productive, and also integration with GitHub and Confluence Cloud.

I hope the four-part series on Jira Cloud Administration has helped you learn and take on tasks effectively in this area.

PREV Tutorial | FIRST Tutorial

Was this helpful?

Thanks for your feedback!

READ MORE FROM THIS SERIES: