Jira to DevOps automation
Asked by Tomasz Bis:

Hi all,

Is it possible to automate the following?

If ticket status changes to 'X', a new work item should be created on Azure DevOps board.

An example - Jira ticket status changed to 'Added to DevBoard', automation should create a Bug item on dedicated DevOps board. I would like the summary and the subject line to be transferred.

Did anyone try to automate something similar please?

Many Thanks


Answers:
author: YY Brother
body: Hi [@Tomasz Bis](/t5/user/viewprofilepage/user-id/4140419)

Welcome to our Community.

Jira automation has the ability to trigger a Webhook (Azure DevOps REST API) when jira ticket is transitioned to a specific status. So don't worry about the implementation at Jira side.

If Azure DevOps platform has REST API to create bug items on dedicated DevOps board, then your requirement is feasible.

Thanks,

YY?

comments: author: Tomasz Bis
body: Hi, Thanks for your answer.

Are you aware of any document that I can use by any chance to achieve mu goal please?


author: YY Brother
body: Hi [@Tomasz Bis](/t5/user/viewprofilepage/user-id/4140419)

Sorry, I haven't got any eperience of integrating with Azure DevOps Rest API. But you may do some research through <https://learn.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-7.2>.

Thanks,

YY?


author: Tomasz Bis
body: Thank you


author: Heenaben Sardarbhai Chaudhary
body: Hi [@Tomasz Bis](/t5/user/viewprofilepage/user-id/4140419) ,

Yes, you can automate the creation of a new work item in Azure DevOps when a Jira ticket status changes using Jira Automation. Here's how you can set it up:

1. **Create Jira Automation Rule**:

   * In Jira, navigate to **Project Settings** \> **Automation**.
   * Create a new rule with the **Trigger** set to **"Issue transitioned"** and select the desired status change (e.g., "Added to DevBoard").
2. **Configure Webhook Action**:

   * Add a **Webhook** action to the automation rule. This webhook will call Azure DevOps API to create a new work item.
   * Obtain the **Webhook URL** from Azure DevOps. This can usually be generated or found in your Azure DevOps project's settings or via the Azure DevOps API documentation.
3. **Pass Jira Data to DevOps**:

   * In the webhook configuration, include the necessary headers and body parameters to create a new work item. You can use Jira smart values to pass the **summary** and **subject line** from the Jira issue. For example, your payload might look like this:

   <br />

   {` `"title":` `"{{issue.summary}}",` `"description":` `"{{issue.description}}",` `"type":` `"Bug"` `}  

4. **Test and Validate**:

   * Save the automation rule and test it by changing the status of a Jira ticket to the specified status. Verify that a new work item is created in Azure DevOps with the correct summary and subject.

This setup allows seamless integration between Jira and Azure DevOps, automating the creation of work items based on Jira status changes.![Screenshot (1324).png](https://community.atlassian.com/t5/image/serverpage/image-id/332943i1618E8D41BD58705/image-size/large?v=v2&px=999 "Screenshot (1324).png")


Tags: cloud

jira-service-management

jira-service-management-cloud