Sunday, May 15, 2022

Drawing Workflow Charts in Azure DevOps Wikis

Azure DevOps wikis supports Mermaid syntax  that can be used to draw diagrams such as flow charts, UML diagrams, pie charts, Gantt charts and many more. 

This blog explains mermaid syntax sample in Azure DevOps 

  • Script starts with :::mermaid and ends with :::
  • Diagram type can be defined as graph, pie and more
  • Shape style can be selected as,

        () - rounded rectangle

        {} - diamond

        [] - rectangle

  • Connector styles can be chosen accordingly.

         arrow -->

         with a label  A-->|label|B

You can find more about mermaid syntax here.

Following is a sample mermaid script to draw a flow chart.

::: mermaid

 graph LR;

    ST1(Start)

       --> C1{Condition}

       C1 --> |Yes| S1[Process] 

       C1 --> |No| S2[Process] 

    S1 --> ST2([Stop])

    S2 --> ST2;

             

:::

Diagram generated with above mermaid script in Azure DevOps wiki as follows.






No comments:

Post a Comment