Sub topic 7
Tracking changes with work items
This chapter assumes you know Salesforce sandboxes and metadata, Git branches and pull requests, and that your DevOps Center project and pipeline already exist. Here you will learn what a work item is and how it moves through its lifecycle.
What a work item is
A work item is the unit of change in DevOps Center. It describes one piece of work, such as "Add a Region field to Account". Each work item has these parts:
- A name and description.
- An owner and, optionally, an assignee.
- A feature branch in your Git repository, created for that work item alone.
- A development environment where you build the change.
- A status that shows where the change sits in the pipeline.
The feature branch is the key link. Every change you commit for a work item goes to its branch. That branch is later reviewed and promoted, so the work item follows one change from creation to production.
The work item lifecycle
A work item moves through states that match your pipeline stages.
Typical statuses are Planned, In Progress, In Review, Ready to Promote, and one for each stage it has reached. Which statuses you see depends on how your project is configured.
Creating a work item
- Open your project in DevOps Center and go to the Work Items tab.
- Select New Work Item.
- Enter a subject and a description that explains the business reason, not only the technical change.
- Choose the development environment where you will build the change.
- Save the work item.
DevOps Center creates the feature branch when you start work. Keep the scope small. A work item that holds one field, one flow, or one fix is easy to review and easy to roll back.
Why scope matters
DevOps Center promotes whole work items. You cannot promote half of one. If you bundle unrelated changes, a problem in one part blocks the rest.
| Approach | Review effort | Rollback effort | Conflict risk |
|---|---|---|---|
| One small change per work item | Low | Low | Low |
| Many unrelated changes in one work item | High | High | High |
Common errors
- Reusing one work item for follow-up work. After a work item is promoted, later changes belong in a new work item. Otherwise the history becomes unclear.
- Working in the wrong environment. Changes made in an org that is not linked to the work item are not tracked, so they never reach the branch.
- Vague descriptions. Reviewers cannot judge whether a change matches its purpose.
- Overlapping work items. Two work items that edit the same component create conflicts later. Check open work items before starting.
Exercise
A teammate puts a new validation rule and an unrelated report folder change into one work item. The validation rule fails testing in UAT. Why is this a problem, and what should they have done?
Show answer
DevOps Center promotes a work item as a whole, so the report folder change is blocked along with the failing validation rule. They should have created two work items, one per change, so each could be reviewed, tested, and promoted independently.