AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Jira Integration

skill-anhtester-codex-testing-kit-jira-integration · by anhtester

Skill tích hợp Jira/Xray — lấy requirements từ Jira, xác thực Xray, và đẩy kết quả test lên Xray Cloud/Server.

No reviews yet
0 installs
34 views
0.0% view→install

Install

$ agentstack add skill-anhtester-codex-testing-kit-jira-integration

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-anhtester-codex-testing-kit-jira-integration)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Jira Integration? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Jira & Xray Integration Skill

Mô tả

Skill này cung cấp khả năng tích hợp giữa Codex workspace với hệ thống Jira và Xray để:

  1. Lấy Requirements/User Stories từ Jira → chuyển thành tài liệu yêu cầu chuẩn
  2. Xác thực Xray (Cloud hoặc Server/Data Center)
  3. Đẩy kết quả test (Playwright, JUnit, Allure) lên Xray Test Management

Khi nào sử dụng

Agent sử dụng skill này khi user yêu cầu:

  • Lấy requirement / user story từ Jira
  • Kết nối / test connection đến Jira API
  • Đẩy kết quả test lên Xray
  • Import test results lên Jira
  • Xác thực Xray token
  • Tích hợp CI/CD với Jira

Trigger keywords:

  • "fetch jira", "lấy requirement từ jira", "get jira ticket"
  • "import xray", "đẩy kết quả lên xray", "push test results"
  • "test jira connection", "kiểm tra kết nối jira"

Cấu trúc Scripts

scripts/integrations/
├── jira/
│   ├── jira_fetcher.js      # Lấy Requirement/User Story từ Jira
│   ├── xray_auth.js         # Xác thực và lấy Token Xray
│   ├── xray_importer.js     # Import kết quả test lên Xray
│   └── utils.js             # Hàm utility dùng chung
└── package.json             # Dependencies (axios, dotenv)

Điều kiện tiên quyết (Prerequisites)

1. Cài đặt dependencies

cd scripts/integrations
npm install

2. Cấu hình .env

Copy .env.example thành .env ở thư mục gốc project:

cp .env.example .env

Điền các thông tin bắt buộc:

| Biến | Mô tả | Bắt buộc | |------|--------|----------| | JIRA_BASE_URL | URL Jira instance (VD: https://domain.atlassian.net) | ✅ | | JIRA_EMAIL | Email tài khoản Jira (Cloud) | ✅ (Cloud) | | JIRA_API_TOKEN | API Token (Cloud) | ✅ (Cloud) | | JIRA_PAT | Personal Access Token (Server/DC) | ✅ (Server) | | JIRA_PROJECT_KEY | Project key mặc định | Khuyến nghị | | XRAY_PLATFORM | cloud hoặc server | Mặc định: cloud | | XRAY_CLIENT_ID | Xray API Client ID | Khi dùng Xray Cloud | | XRAY_CLIENT_SECRET | Xray API Client Secret | Khi dùng Xray Cloud |

3. Cách lấy Jira API Token (Cloud)

  1. Đăng nhập vào https://id.atlassian.com/manage-profile/security/api-tokens
  2. Nhấn Create API token
  3. Đặt label (ví dụ: "Codex Automation")
  4. Copy token → dán vào JIRA_API_TOKEN trong file .env

4. Cách lấy Xray Cloud API Key

  1. Truy cập https://app.getxray.app → Settings → API Keys
  2. Hoặc trong Jira: Apps → Xray → Settings → API Keys
  3. Tạo API Key mới → Copy Client IDClient Secret

Hướng dẫn sử dụng

Lấy 1 issue cụ thể

node scripts/integrations/jira/jira_fetcher.js --issue PROJ-123

Lấy issues theo project

node scripts/integrations/jira/jira_fetcher.js --project PROJ --type Story --max 20

Tìm theo JQL

node scripts/integrations/jira/jira_fetcher.js --jql "project = PROJ AND status = 'To Do'"

Xuất thành Markdown requirement

node scripts/integrations/jira/jira_fetcher.js --issue PROJ-123 --format md

Lấy children của Epic

node scripts/integrations/jira/jira_fetcher.js --epic PROJ-10 --format md

Test Xray authentication

node scripts/integrations/jira/xray_auth.js
node scripts/integrations/jira/xray_auth.js --verify

Import kết quả Playwright lên Xray

node scripts/integrations/jira/xray_importer.js --format playwright --file ./test-results.json --project PROJ

Import JUnit XML lên Xray

node scripts/integrations/jira/xray_importer.js --format junit --file ./junit-results.xml --project PROJ

Workflow liên quan

| Workflow | Mô tả | |----------|--------| | $fetch-jira-requirements | Lấy requirements từ Jira ticket và lưu thành file | | $import-test-results-xray | Đẩy kết quả test lên Xray |


Lưu ý quan trọng

  • Bảo mật: KHÔNG bao giờ commit file .env lên Git. File .gitignore đã được cấu hình bỏ qua .env.
  • Rate Limiting: Jira Cloud có giới hạn API calls. Script đã hỗ trợ phân trang (pagination) để tránh vượt limit.
  • Atlassian Document Format (ADF): Jira Cloud sử dụng ADF cho description. Script tự động chuyển đổi ADF → plain text.
  • Test Key Convention: Khi import Playwright results, nên đặt test key trong title: test('[PROJ-123] Login should work', ...) để Xray mapping đúng test case.

Troubleshooting

| Lỗi | Nguyên nhân | Giải pháp | |------|-------------|-----------| | HTTP 401 | Token/password sai | Kiểm tra JIRAAPITOKEN hoặc JIRAPAT | | HTTP 403 | Không có quyền | Kiểm tra permission trên Jira project | | HTTP 404 | URL sai hoặc issue không tồn tại | Kiểm tra JIRABASEURL và issue key | | ENOTFOUND | DNS không resolve | Kiểm tra JIRABASE_URL có đúng domain không | | ECONNREFUSED | Server không chạy | Kiểm tra Jira Server có online không | | File .env not found | Chưa tạo .env | Copy .env.example.env |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.