AgentSkillsCN

jira-syntax

Jira Wiki 标记语法的验证、模板与格式化指南。当您:(1)撰写 Jira 问题描述或评论,(2)将 Markdown 转换为 Jira Wiki 标记,(3)请求 Bug 报告或功能请求模板,(4)在提交前验证 Jira 语法,(5)搜索关键词如“Jira 格式”、“Wiki 标记”、“Jira 语法”、“Jira 格式化”,(6)确保内容使用 h2./h3. 标题,而非 Markdown 的 ## 标题,(7)检查代码块是否使用 {code:lang} 而非三重反引号,(8)任何涉及 Jira 文本格式化的任务时,均可选用此方案。

SKILL.md
--- frontmatter
name: jira-syntax
description: "Jira wiki markup syntax validation, templates, and formatting guidance. Use when: (1) Writing Jira issue descriptions or comments, (2) Converting Markdown to Jira wiki markup, (3) Requesting bug report or feature request templates, (4) Validating Jira syntax before submission, (5) Keywords like 'jira format', 'wiki markup', 'jira syntax', 'format for jira', (6) Ensuring content uses h2./h3. headings instead of Markdown ##, (7) Checking code blocks use {code:lang} not triple backticks, (8) Any task involving Jira text formatting"
allowed-tools: Bash(scripts/validate-jira-syntax.sh:*) Read

Jira Syntax Validation Skill

Provides Jira wiki markup syntax validation, templates, and formatting guidance. For API operations, use the jira-communication skill.

Quick Syntax Reference

Jira SyntaxPurposeNOT this (Markdown)
h2. TitleHeading## Title
*bold*Bold**bold**
_italic_Italic*italic*
{{code}}Inline code`code`
{code:java}...{code}Code block java ```
[text|url]Link[text](url)
[PROJ-123]Issue link-
[~username]User mention@username
* itemBullet list- item
# itemNumbered list1. item
||Header||Table header|Header|

See references/jira-syntax-quick-reference.md for complete syntax documentation.

Available Templates

Bug Report

Path: templates/bug-report-template.md

Sections: Environment, Steps to Reproduce, Expected/Actual Behavior, Error Messages, Technical Notes

Feature Request

Path: templates/feature-request-template.md

Sections: Overview, User Stories, Acceptance Criteria, Technical Approach, Success Metrics

Syntax Validation

Run before submitting to Jira:

bash
scripts/validate-jira-syntax.sh path/to/content.txt

Validation Checklist

  • Headings: h2. Title (space after period)
  • Bold: *text* (single asterisk)
  • Code blocks: {code:language}...{code}
  • Lists: * for bullets, # for numbers
  • Links: [label|url] or [PROJ-123]
  • Tables: ||Header|| and |Cell|
  • Colors: {color:red}text{color}
  • Panels: {panel:title=X}...{panel}

Common Mistakes

❌ Wrong✅ Correct
## Headingh2. Heading
**bold***bold*
`code`{{code}}
[text](url)[text|url]
- bullet* bullet
h2.Titleh2. Title

Integration with jira-communication Skill

Workflow:

  1. Get template from jira-syntax
  2. Fill content using Jira wiki markup
  3. Validate with scripts/validate-jira-syntax.sh
  4. Submit via jira-communication scripts (e.g., uv run scripts/workflow/jira-create.py)

References

  • references/jira-syntax-quick-reference.md - Complete syntax documentation
  • templates/bug-report-template.md - Bug report template
  • templates/feature-request-template.md - Feature request template
  • scripts/validate-jira-syntax.sh - Automated syntax checker
  • Official Jira Wiki Markup