Git Product home page Git Product logo

adoautostatetransitions's Introduction

Description

This project automates Azure DevOps to update work item state in two frequent scenarios:

  • When a work item transitions from New to Active, recursively walk parent links and update parent items from New to Active; if parent items are in any other state, no change is made.
  • When the last child item of a work item transitions to Closed or Removed, change the work item itself to Closed (if at least one child is Closed) or Removed (if all child items are Removed); if any of the child items is not in the Closed or Removed date, no change is made.

How it's done

A Service Hook in Azure DevOps sends a message to a ServiceBus topic every time a work item is updated (see configuration screenshots below). This topic triggers an Azure function which connects to the Azure DevOps project and implements the logic above, using the ADO REST API (through the respective C# SDK).

Overview.png Screenshot1.png Screenshot2.png

How to reuse

  1. Create a Personal Access Token in Azure Dev Ops with "Work Items (Read, write, & manage)" permissions
  2. Open AdoAutoStateTransitions.sln in Visual Studio
  3. Deploy the azuredeploy.json ARM template in the AdoAutoStateTransitionsAzure project
  4. Build and publish the Azure Functions project (AdoAutoStateTransitionsFunctions)
  5. Go to the Properties page for the Function App in the Azure portal and set the appropriate values for the AdoUrl, AdoPat and ServiceBusConnectionString settings

Contributing

Feedback and pull requests welcome.

adoautostatetransitions's People

Contributors

coderunrepeat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

adoautostatetransitions's Issues

Is this still functional?

Hello,

I found your solution and am trying to use it so we can do state changes in ADO - just like your repo references. I have the Service Bus deployed but am running into issues deploying the Azure Function from the Visual Studio project. It looks like a lot of dependencies are missing and I am sort of stuck there.

Is there a way to manually deploy the function and just bring the code from the repository into the function - without doing it from Visual Studio?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.