How to write workflows

Guidelines, rationale, and resources on writing good workflow pages.

Overview

This page is meant to provide some guidance on writing workflow pages including creating new or updating existing workflows.

It is meant to be easy to read and quick to scan in the spirit of the guidance provided on this page.

Why this is important

While having information written down has many benefits, for people to find what they need, it needs to be well organized too.

Organization is particularly important in the workflows because often steps for a process only apply in some cases. Making it easier for a team member to follow a process while also allowing them to only read the necessary parts to complete a task is needed for efficiency.

Creating, updating, and improving workflows fits with [GitLab values]/handbook/values/) and emphasizes many of our operating principles and approaches including:

This very page came out of a discussion on increasing support efficiency.

Basic guidelines

Good workflows have:

  1. the information related to the title.
    • If you’re including new information, which workflow does it fit best in? If it doesn’t fit anywhere, consider a new workflow.
  2. information broken up in small sections.
    • Is what you’re adding a discrete step for a process? Make sure it’s part of a list. Specific use case? Use a heading to separate it.
  3. well organized and descriptive headings to make looking for information easier.
    • What level heading is appropriate? Are there many others (example h3) already? If so, consider adding a new higher level heading (example h2).
  4. links to other relevant workflows or documentation.
    • A lot of our workflows are related, but we should avoid duplicating information. Link to it instead.
  5. a reasonable length.
    • If you think a workflow page is too long, then it might be. Consider if it can be broken up, or if it needs to be reorganized.
  6. visual aids, such as flowcharts, whenever helpful.
    • Consider adding a mermaid chart or image to help visual learners.

For general writing practices including inclusive language and use of markdown, consider following the GitLab documentation guidelines.

Example from okay to better

Let’s take the Support Time Off page as an example (even though it’s not a workflow page, it’s process related).

The original version organized the information by using number of days off as the “divider”.

  1. Less than half a day
  2. Half day or more
    1. Use Time Off by Deel
    2. PagerDuty shifts
    3. Meetings
  3. 1-2 days
    1. Check with customers
    2. Groom queue
  4. 3+ days
    1. Notify team
    2. Change ticket workflow
    3. Find new assignees for your tickets

That’s understandable, but difficult to scan which parts are relevant to an individual, because not all Support team members have PagerDuty shifts, or assigned tickets (think Support Ops). Additionally, some pieces duplicated company handbook information.

In a revision, the page was reorganized to focus on responsibilities so that team members could skip sections that are not relevant to them.

  1. Marking time off
    • with link to relevant company handbook section
  2. Coverage for PagerDuty
  3. Coverage for tickets
    1. Refine queue
    2. Check with customers
    3. Additional actions for 3+ days
      1. Notify team and find new assignees
      2. Change ticket workflow

This is a small, but hopefully good example of how a difference in organizing the content can make it easier and more efficient for the reader.

Creating a new workflow

When creating a new workflow, please keep the above guidelines in mind, and consider this process:

  1. Ordering and organizing with an outline.
  2. Get someone to review the outline.
  3. Writing the full content.
  4. Get one or more reviewers focusing on one of the following for their review:
    1. Organization and structure.
    2. Clarity and conciseness.

Template

There is no specific template for a workflow (except the metadata noted below). Some possible places to start:

  1. Use another workflow as a template.
  2. Use the GitLab documentation structure and template.

Metadata

The following metadata and table of contents pieces should be at the top of every workflow page.

Notes:

  1. The only optional (can be removed) metadata line is subcategory. All others must be filled in.
  2. See the existing workflows for existing categories.
1
2
3
4
5
6
7
8
9
---
title:
description:
category:
subcategory:
last-reviewed: YYYY-MM-DD
---

## First heading
Last modified November 27, 2023: Fixes broken Support links (897950ce)