Articles
Tutorials
Interactive Guides
Automatically transition issue status in Jira and GitLab
![Kev Zettler Headshot](https://wac-cdn.atlassian.com/dam/jcr:09c4d11b-0f74-4dcd-aeba-28b5467d8a31/Headshot-Kev%20Zettler@2x.png?cdnVersion=2484)
Kev Zettler
Full stack web developer, DevOps
This guide demonstrates how to create a Jira automation rule that integrates with GitLab.
Time
5 Minute Read.
Audience
You’re an experienced user of Jira Software and GitLab.
Prerequisites
You are an existing GitLab customer. Get the GitLab for Jira integration here.
If you’re new to GitLab, get started here.
You have an active Jira project with the GitLab application installed and configured. Get started with Jira here.
Step 1. Add automation
On your Jira project page, click the add automation button. Then, select the Branch, commit or pull requests option.
![Step 1 in adding an automation in Jira on Jira project page](https://wac-cdn.atlassian.com/dam/jcr:e8d705af-fa17-43ef-8179-cc9416b5d8c2/image1.png?cdnVersion=2484)
Step 2. Create a new trigger
Search for and select the Commit created trigger. This will trigger the rule when a commit happens.
![Search for and select the Commit created trigger. New trigger. Triggers start the execution of a rule. Triggers can listen for events or be scheduled to run.](https://wac-cdn.atlassian.com/dam/jcr:f73bba9d-6c8a-4bdc-b964-23e4fff1aa2a/image7.png?cdnVersion=2484)
Step 3. Create a new condition
Search for and select the Issue fields condition. This will restrict the actions performed to issues that match certain field conditions.
![Search for and select the Issue fields condition. New condition. Actions will only execute if all conditions preceding them pass.](https://wac-cdn.atlassian.com/dam/jcr:41a3a91f-3f26-4235-b5bd-afbe69a01bed/image5.png?cdnVersion=2484)
Set the condition so the Status field equals “selected for development”. This status may not exist in your project and you may need to create it or use an alternative. Click Save to continue.
![Issue fields condition. Checks whether an issue's field meets a certain criteria. Field: Status; Condition: equals; Value: “selected for development”](https://wac-cdn.atlassian.com/dam/jcr:9856bcc6-00aa-41ca-a0dc-faf602b3f495/image4.png?cdnVersion=2484)
Step 4. Create a Transition issue
Search for and select the Transition issue action, which will transition the issue to a new status.
![New action. Actions perform changes to a system. "Trans" selected under "All actions". Transition issue: transition an issue to a specific status](https://wac-cdn.atlassian.com/dam/jcr:6b1bbfed-1f3d-4d19-a00f-699d604f4c76/image1.png?cdnVersion=2484)
We will configure the Transition issue action so that the destination status updates to “in progress”. Click Save.
![Transition an issue from one status to another, through a workflow. Choose the status to transition the issue to: Destination status: In progress](https://wac-cdn.atlassian.com/dam/jcr:5844c335-b3cb-486f-ad8e-89aab61d87fb/image3.png?cdnVersion=2484)
Step 5. Enter a name
Now enter a name for the rule. We used “Transition issue on commit”. Click the Turn It On button. The final rule summary should look like the following:
![The final rule summary](https://wac-cdn.atlassian.com/dam/jcr:5a98b7a4-109f-411a-bbda-f1393c185d01/image2.png?cdnVersion=2484)
The rule is complete and can be triggered by the following steps:
- Create an issue with the status “Selected for development” in Jira.
- Create a commit and push to GitLab that references the issue key.
Once these actions are taken, the rule will trigger and move the issue to “In progress” status. You can monitor the rule by visiting the Audit Log, which will indicate any configuration errors with the rule and help with debugging.
Be sure to check out hundreds of other rules in our Automation Template Library.
Share this article
Next Topic
Recommended reading
Bookmark these resources to learn about types of DevOps teams, or for ongoing updates about DevOps at Atlassian.
![Devops illustration](https://wac-cdn.atlassian.com/dam/jcr:bd9d8b2c-ca36-444f-8595-719cb1990e64/Devops-community.png?cdnVersion=2484)
DevOps community
![Devops illustration](https://wac-cdn.atlassian.com/dam/jcr:297108ea-d232-4368-af51-b53af230c4fe/Simulation-workshop.png?cdnVersion=2484)
DevOps learning path
![Map illustration](https://wac-cdn.atlassian.com/dam/jcr:25f6330a-4191-408f-a4e5-2e24bfba67b4/Maturity-model.png?cdnVersion=2484)