Short answer: Capacity drives sprint commitment — the story-point budget for this sprint given who is available and how much effective time they have. Velocity is historical output: story points completed in past sprints. Use velocity to calibrate capacity, not as the commitment by itself.

Model capacity in Jira, compare done SP to your velocity trend, and plan scope in one view.