Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira to DevOps automation

Tomasz Bis April 10, 2024

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

2 answers

1 accepted

0 votes
Answer accepted
YY Brother
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 10, 2024

Hi @Tomasz Bis 

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哥

Tomasz Bis April 15, 2024

Hi, Thanks for your answer.

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

YY Brother
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2024

Hi @Tomasz Bis 

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哥

Like Tomasz Bis likes this
Tomasz Bis April 15, 2024

Thank you

Like YY Brother likes this
0 votes
Heenaben Sardarbhai Chaudhary July 2, 2024

Hi @Tomasz Bis ,

 

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:

    { "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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events