Introduction¶
When working on requirements or defect fixes using DSH, context is often scattered across Jira pages, attachments, and comments; developers also have to manually pull branches, map fields, and reply to posts. Manually switching between browsers and terminals wastes time and makes it easy to miss epics, subtasks, or acceptance criteria. The dsh-plugin-jira introduced below (maintained by angelomadara, GitHub angelomadara/dsh-plugin-jira) targets DeepSeek Harness (dsh) 0.2.x. It saves site and API Token in the Web configuration, and uses slash commands and Agent tools to complete ticket pulling, branch preparation, comment writing, and optional GitHub PR / GitLab MR creation. The community directory categorizes it as “Internet Tools”.
What is it¶
The full plugin name is dsh-plugin-jira, current release version 0.1.9 (MIT License). It registers id: jira via cordis.patch.yml and provides a Settings → Jira settings page in the DSH Web client (client.js, platform: web). Core capabilities can be summarized as: credential and connection checking, one-click branch creation from a ticket with rich context handed to the Agent, four tool types jira_ticket / jira_search / jira_transition / jira_comment, and commands like /jira-comment, /jira-mr, /jira-pr.
Configuration and Credentials¶
Initial Configuration After Installation¶
After installation, open Settings → Jira and fill in:
- Site URL — For Jira Cloud it is generally
https://yourorg.atlassian.net; for Data Center with a context path, the full URL is required, e.g.,https://jira.example.com/jira. - Email — The Atlassian account email paired with the API Token in Cloud; leave empty when using Personal Access Tokens in Data Center.
- API Token — Create it on the Atlassian account security page or in Jira Data Center Personal Access Tokens; the token is only shown once, so copy it immediately.
Click Check connection after saving: this executes /jira-check in the current session, reporting the account corresponding to the Token and visible projects; if 401 is returned, the README provides corresponding fix hints.
Credentials are written to DSH credential storage, referenced as JIRA_SITE, JIRA_EMAIL, JIRA_API_TOKEN. Environment variables with the same names can also be used in CI or headless scenarios. Cloud uses Email + Token for Basic Auth; if Email is empty, Token is sent as Bearer (Data Center PAT). Site URL must be https (only http is allowed for localhost).
Installation and Enablement¶
Install via release package:
dsh plugin --profile web add dsh-plugin-jira
dsh web --dump-config | grep 'id: jira' # confirm the layer mounted
# restart dsh web
Install from GitHub (consistent with the source accepted by the Desktop Plugins → install dialog):
dsh plugin --profile web add github:angelomadara/dsh-plugin-jira
For local development, link to directory:
dsh plugin --profile web add link:/absolute/path/to/dsh-plugin-jira
Uninstall can be done from the Plugins page or by executing dsh plugin --profile web remove dsh-plugin-jira and deleting the jira line in cordis.patch.yml in the profile.
Repository-Level Optional Configuration¶
A .dsh-jira.json can be placed in the repository root, for example:
{
"base": "develop",
"branch": "feature/{key}-{slug}",
"worktree": false,
"allowDirty": false,
"downloadAttachments": true,
"provider": "gitlab",
"fields": {
"acceptanceCriteria": "customfield_10001",
"storyPoints": "customfield_10002",
"severity": "customfield_10003",
"epic": "customfield_10014"
}
}
base defaults to dev, acting as the start point for /jira-do; branch supports {key}, {slug} templates. worktree creates a worktree in .dsh-jira-worktrees/<branch> if true; allowDirty controls whether switching is allowed when there are tracked changes. downloadAttachments defaults to saving attachments to docs/jira/<KEY>/ (single file limit 10 MB). fields maps friendly names to Jira custom field IDs to facilitate reporting in the Agent. provider manually specifies the provider when the self-hosted Git host name cannot be inferred as GitHub/GitLab.
Slash Commands¶
/jira-do TCKT-123¶
Pulls the ticket, checks out base (or the base in .dsh-jira.json), pulls the latest code, creates a branch according to the branch template (default is the ticket number), downloads attachments to docs/jira/TCKT-123/, then hands over components, fix versions, environment, parent ticket/epic, subtasks, configured custom fields, complete comment threads, etc., to the Agent, along with a fix brief (root cause, minimal change, test suggestions); simultaneously generates a full change report draft in docs/jira/TCKT-123.md, without auto-committing. If the branch already exists, it will be reused and report the number of commits ahead relative to base. Ticket type adjusts the focus of the brief: defects focus on root cause and reproduction, Stories on acceptance criteria, Spikes on approach and suggestions.
/jira-check, /jira-find, /jira-transition¶
/jira-check— Displays the Token identity and visible projects./jira-find [JQL]— JQL search; lists current user’s open tickets if no parameter is provided./jira-transition TCKT-123 [status]— Lists available transitions or moves the ticket to a matching status.
/jira-comment¶
Posts a comment. The ticket number can be omitted: if the current branch name is the ticket key, e.g., /jira-comment Fixed in this branch, it works. Screenshots attached in the editor are uploaded to the ticket and embedded in the comment. If the body is omitted (e.g., /jira-comment), the Agent analyzes the committed changes relative to base and workspace diff to write the comment itself.
/jira-mr [target] and /jira-pr [target]¶
Creates a GitLab Merge Request or GitHub Pull Request from the ticket branch to target (default dev); the description will reference the ticket link, root cause summary, and test plan in docs/jira/<KEY>.md. Determines the host based on origin. Before execution, it runs git add -A (respecting gitignore, untracked files will be included) and pushes the branch. GitLab depends on GITLAB_TOKEN (credential or environment variable) or git credentials for that host; GitHub depends on an authenticated gh CLI.
Agent Tools (Read & Write)¶
| Tool | Function |
|---|---|
jira_ticket |
Pulls a single ticket (summary, description, status, labels, components, fix version, environment, parent/subtasks, attachments, comments), does not touch git |
jira_search |
JQL search, read-only, max 50 results |
jira_transition |
Lists or executes workflow transitions, will write to Jira |
jira_comment |
Posts a comment, local image paths can be passed via attachments to upload and embed |
Markdown comments are converted to Atlassian Document Format by lib/adf.js before calling the REST API v3.
Typical Workflow¶
dsh plugin --profile web add dsh-plugin-jira, restartdsh web, save site, email, and Token in Settings → Jira and Check connection.- Add
.dsh-jira.jsonas needed in the business repository root. - In the DSH session, execute
/jira-do PROJ-42, modify code under the Agent’s guidance; after fixing, have the Agent write the full change report todocs/jira/PROJ-42.md(README requires this file to be written after fixing is complete). - Use
/jira-commentto write progress or completion notes; use/jira-pror/jira-mrwhen merging is needed.
Offline self-check can be done in the plugin directory:
node test.js # ok — command, branch, hand-off, tools, comments, client registration
Applicable Scenarios and Notes¶
Suitable for teams already managing tickets in Jira Cloud or Data Center and using DSH Web (--profile web) for pair programming. The plugin accesses Jira API and local git with the current dsh process permissions; it is recommended to read the source repository and the MIT license before installation to self-assess Token scope and risks of write operations like jira_transition and jira_comment.
The DSH ecology advocates the philosophy that “everything is a plugin”; the SkillHub directory page is a community listing, with no official affiliation with DeepSeek / Huafan. The repository currently has 1 star on GitHub.
Conclusion¶
dsh-plugin-jira brings Jira ticket intake, branch preparation, Agent context, and comment/PR workflow into the DSH session, reducing switching between Jira and terminals. For further understanding, visit the directory skillhub.cn/plugins/angelomadara/dsh-plugin-jira and GitHub github.com/angelomadara/dsh-plugin-jira.