Here’s a comprehensive GitLab reference guide on how to link, reference, and organize various entities (like issues, jobs, users, environments, etc.) across GitLab descriptions, wikis, commit messages, MRs, and more.
๐ GitLab Reference & Linking Guide (v18.x compatible)
GitLab provides Markdown and keyword-based shortcuts to cross-reference nearly every object in the system for traceability, collaboration, and automation.
โ 1. Issues
๐น Where to Reference
- Commit messages:
Fixes #123 - Merge Request description:
Closes #123 - Comments, Wiki, Readme:
#123
๐น Format
#123 // Just refers to issue
Fixes #123 // Closes on merge
See issue #123 // Mentions without closing
Code language: PHP (php)
โ 2. Merge Requests (MRs)
๐น Where to Reference
- Wiki:
!45 - Issues, Comments:
See !45 - Commit Messages (rare)
๐น Format
!45
See merge request !45
โ 3. Commits
๐น Where to Reference
- Issues, MRs:
abcd1234orproject@abcd1234
๐น Format
abcd1234 // Short SHA
project@abcd1234 // Cross-project
Code language: JavaScript (javascript)
โ 4. Jobs (CI/CD)
๐น Where to Reference
- Pipeline tab or job logs in UI (not Markdown-accessible)
- Use direct links or job artifacts in comments or wiki
๐น Format (Manual linking)
[View Job Log](https://gitlab.com/namespace/project/-/jobs/123456789)
Code language: JavaScript (javascript)
โ 5. Milestones
๐น Where to Reference
- Issues, MRs, Wiki:
%milestone_name
๐น Format
%v1.0
Targeted for %Q2-Release
Code language: CSS (css)
โ 6. Requirements (GitLab Ultimate)
๐น Where to Reference
- Issues, MRs, Descriptions, Wiki:
REQ-1,requirements#123
๐น Format
Relates to requirements#12
Code language: CSS (css)
Enabled under Requirements Management in project settings.
โ 7. Users
๐น Where to Mention
- Any Markdown-supported field: descriptions, comments, commit messages
๐น Format
@username
Assigned to @john_doe
Code language: CSS (css)
โ 8. Labels
๐น Where to Use
- Issue or MR references:
~"bug"or~bug
๐น Format
~"feature"
~backend
Code language: JavaScript (javascript)
โ 9. Environments (CI/CD)
๐น Where to Reference
- Pipeline views, API, job logs
๐น Format
[View Staging](https://gitlab.com/namespace/project/-/environments/123)
Code language: JavaScript (javascript)
โ 10. Epics (GitLab Premium+)
๐น Where to Reference
- Issues, MRs, descriptions, comments:
&123
๐น Format
Part of epic &45
โ 11. Snippets
๐น Where to Reference
- Wiki, comments:
$snippet_id
๐น Format
$42
โ 12. Wiki Pages
๐น Where to Reference
- Markdown everywhere
๐น Format
[Deployment Guide](../wikis/deployment)
โ 13. Projects
๐น Cross-project linking:
group/project#123 // Issue
group/project!456 // MR
group/project@SHA // Commit
Code language: PHP (php)
โ 14. Pipeline Status Badges
[](https://gitlab.com/group/project/pipelines)
Code language: JSON / JSON with Comments (json)
๐ Markdown Reference Shortcuts Summary
| Reference Type | Syntax Example | Description |
|---|---|---|
| Issue | #123 | Links to issue |
| Merge Request | !45 | Links to MR |
| Commit | abcd1234 | Links to commit |
| Milestone | %v1.0 | Links to milestone |
| Label | ~bug | Links to label |
| User | @username | Mentions user |
| Epic | &12 | Links to epic (Premium+) |
| Requirement | requirements#123 | Links to requirement (Ultimate) |
| Snippet | $42 | Links to code snippet |
| Environment Link | Direct URL | Link to job/env logs |
| Cross-project | group/project#123 | Ref to other repo issue/MR |
๐ง Tips
- GitLab autolinks most entities with typeahead autocomplete when typing
@,#,!, etc. - Use templates (issue/MR/wikis) to enforce referencing conventions.
- Use custom sections in MRs like:
### Linked Issues Fixes #123 ### Related MRs See !45
Iโm a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at WIZBRAND
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services โ all in one place.
Explore Hospitals