← All work

Automating defect updates across ClearQuest and GitLab

I built a Python automation that synced defect statuses and assignees from ClearQuest to GitLab before the engineering team’s morning meeting.

Workflow automation · Python · Engineering internship

The problem

During an engineering internship, I noticed that my team tracked customer-reported defects in ClearQuest and managed the corresponding engineering work in GitLab. When a status or assignee changed, someone had to update the other system by hand. Sometimes that fell to a manager, sometimes to an engineer. The team needed the records to line up by its morning sync.

What I built

I built a Python script that used both platforms’ APIs to match defects by their shared IDs. I used ClearQuest as the source of truth and updated GitLab with the corresponding statuses and assignees. The script could be scoped to specific projects or milestones so the team could focus on active defects. I scheduled it to run before the morning sync, when the team needed the records to be current.

What changed

My manager told me the automation gave the team a way to stop making those updates by hand. A daily run was enough because the team needed the records to be current for the morning review.

What I’d change

I’d sit down earlier with the people who update and review defects and walk through a few real records with them. Some fields were missing or had values that didn’t map cleanly between systems. I’d use those examples to agree on when the script should update a field, leave it alone, or flag it for review. Then I’d test those rules with the team and document them so whoever maintained the sync could see how we handled exceptions and why.

← All work