GitScrum / Docs
All Best Practices

Git Integration | Connect to Project Tasks

Connect GitHub, GitLab, and Bitbucket to GitScrum tasks. Link commits, branches, and PRs directly to project work for unified development tracking.

5 min read

When Git repositories and project management live in separate worlds, teams lose visibility into what code supports which tasks. GitScrum integrates with GitHub, GitLab, and Bitbucket to connect commits, branches, and pull requests directly to tasks.

The Disconnection Problem

Separate Git and project management creates friction:

  • Manual updates β€” Marking tasks complete after merges
  • Lost context β€” No visibility into which commits support which tasks
  • Duplicate effort β€” Writing PR descriptions and task updates
  • Audit gaps β€” Tracing features back to original requirements
  • Reporting overhead β€” Manually correlating code and task progress

GitScrum Git Integrations

Connect your repositories to GitScrum:

Supported Platforms

PlatformFeatures
GitHubCommits, branches, PRs, issues sync
GitLabCommits, branches, MRs, issues sync
BitbucketCommits, branches, PRs

What Gets Connected

  • Commits linked to tasks via task ID in commit message
  • Branches tracked per task
  • Pull/Merge Requests visible in task timeline
  • Status changes reflected automatically

Setting Up Git Integration

GitHub Setup

  • Go to Project Settings β†’ Integrations
  • Select GitHub
  • Authenticate with OAuth
  • Select repositories to connect
  • Configure sync options
  • GitLab Setup

  • Go to Project Settings β†’ Integrations
  • Select GitLab
  • Enter personal access token
  • Select projects to connect
  • Configure webhook notifications
  • Bitbucket Setup

  • Go to Project Settings β†’ Integrations
  • Select Bitbucket
  • Authenticate with OAuth
  • Select repositories to connect
  • Configure sync options
  • Linking Commits to Tasks

    Use task IDs in commit messages to link:

    Commit Message Format

    git commit -m "Add user authentication [GS-234]"
    

    Alternative Formats

    # Short form
    git commit -m "Fix login bug #234"
    
    # With description
    git commit -m "Implement OAuth flow
    
    Adds Google OAuth support for user authentication.
    Closes GS-234"
    
    # Multiple tasks
    git commit -m "Refactor auth module [GS-234] [GS-235]"
    

    What Appears in GitScrum

    Task #234: Implement OAuth login
    β”œβ”€β”€ Status: In Progress
    β”œβ”€β”€ Git Activity:
    β”‚   β”œβ”€β”€ Commit abc123: "Add user authentication [GS-234]"
    β”‚   β”œβ”€β”€ Branch: feature/oauth-login
    β”‚   └── PR #45: "OAuth Implementation" (Open)
    └── Last updated: 5 minutes ago
    

    Branch Tracking

    GitScrum tracks branches associated with tasks:

    Branch Naming Convention

    feature/GS-234-oauth-login
    bugfix/GS-456-login-error
    hotfix/GS-789-security-patch
    

    Branch Visibility

    • See active branches per task
    • Track branch status (open, merged, deleted)
    • View branch history in task timeline

    Pull Request Integration

    PR Visibility in Tasks

    When PRs reference task IDs:
    Task #234: Implement OAuth login
    β”œβ”€β”€ Pull Requests:
    β”‚   └── #45: "OAuth Implementation"
    β”‚       β”œβ”€β”€ Status: Open
    β”‚       β”œβ”€β”€ Author: @developer
    β”‚       β”œβ”€β”€ Reviewers: @senior-dev
    β”‚       β”œβ”€β”€ Checks: βœ“ All passing
    β”‚       └── Comments: 3
    

    Automatic Status Updates

    Configure auto-transitions:
    • PR opened β†’ Task moves to "In Review"
    • PR merged β†’ Task moves to "Done"
    • PR closed β†’ Task returns to "In Progress"

    Activity Timeline

    Each task shows Git activity chronologically:

    Task #234: Implement OAuth login
    Timeline:
    β”œβ”€β”€ Dec 18, 10:00 β€” PR #45 merged by @senior-dev
    β”œβ”€β”€ Dec 18, 09:30 β€” PR #45 approved by @senior-dev
    β”œβ”€β”€ Dec 17, 16:00 β€” PR #45 opened by @developer
    β”œβ”€β”€ Dec 17, 15:45 β€” Commit def456: "Add OAuth callback handling"
    β”œβ”€β”€ Dec 17, 14:00 β€” Commit abc123: "Add OAuth initialization"
    β”œβ”€β”€ Dec 16, 10:00 β€” Branch feature/GS-234-oauth-login created
    └── Dec 15, 09:00 β€” Task created by @pm
    

    Bidirectional Linking

    From GitScrum to Git

    • View commits, branches, PRs in task details
    • Click through to GitHub/GitLab/Bitbucket
    • See PR status and review comments

    From Git to GitScrum

    • Add links to tasks in PR descriptions
    • See task context when reviewing PRs
    • Access task requirements from commit history

    Best Practices

    Commit Message Standards

  • Include task ID β€” Every commit references a task
  • Be descriptive β€” Explain what and why
  • Keep it atomic β€” One logical change per commit
  • Use conventional format β€” type(scope): message [task-id]
  • Branch Strategy

  • Use task ID in branch name β€” Automatic linking
  • Keep branches short-lived β€” Merge frequently
  • Delete after merge β€” Clean repository
  • PR Workflow

  • Reference task in PR title or description
  • Use PR template that prompts for task link
  • Review task requirements before approving
  • Automation Opportunities

    Auto-Move Tasks on Git Events

    Git EventTask Transition
    Branch createdTo Do β†’ In Progress
    PR openedIn Progress β†’ Code Review
    PR approvedCode Review β†’ Ready to Merge
    PR mergedReady to Merge β†’ Done
    PR closed (not merged)Code Review β†’ In Progress

    Webhook Notifications

    Send Git events to GitScrum:
    • Commit pushes
    • PR status changes
    • Branch creation/deletion
    • Review requests

    Related Solutions