Logseq-JIRA Plugin

May 18, 2025 ยท View on GitHub

The Logseq-JIRA plugin allows users to integrate their JIRA issue data into Logseq for personal notes and tracking. This document provides detailed information on setting up and configuring the plugin.

Check out the discussion on Logseq Forums by clicking here

Installation

  1. Download the Logseq-JIRA plugin from the official repository.
  2. Install the plugin in Logseq by navigating to Plugins > Install Plugin.
  3. Upload the plugin file and follow the installation prompts.

Configuration

Primary JIRA Account Settings

Configure the primary JIRA account with the following settings:

Setting KeyTitleDescriptionTypeDefault
jiraBaseURLJIRA Base URLEnter your JIRA instance's base URL (e.g., xyz.atlassian.net). Do not include 'https://' or a trailing '/'.Stringorgname.atlassian.net
jiraUsernameJIRA UsernameEnter your JIRA username (usually your email address).String""
jiraAPITokenJIRA API TokenEnter your JIRA API token. You can generate one here.String""
jiraAuthTypeJIRA Authentication MethodChoose your authentication method: Basic Auth or Personal Access Tokens.EnumBasic Auth
jiraAPIVersionJIRA API VersionSelect the API version your organization uses. Change this only if you use an older on-premise version.Enum3

Display Options for JIRA Data

Customize how JIRA issue details are shown in your notes:

Setting KeyTitleDescriptionTypeDefault
formatExpertModeEnable format export modeWhen enabled, the link is not created automatically and can be added using %link%Booleanfalse
issueLinkTextFormatIssue FormatIssue link text customization.String%statuscategoryicon% %statuscategoryname% - %key%|%summary%
issueLinkTextFormatOrgModeIssue Format For Org ModeIssue link text customization for Org Mode.String%statuscategoryicon% %statuscategoryname% - %key%|%summary%
updateInlineTextHyperlink JIRA Issue KeysAutomatically hyperlink JIRA issue keys with their summaries.Booleantrue
autoRefreshAuto Refresh Jira LinksExperimental: Automatically refresh all links at start of Logseq.EnumNo
enableOrgModeSupport for Org-Mode vaultsIf you use org mode for your content, enable this flag. Turned off by defaultBooleanfalse
addToBlockPropertiesAdd JIRA Fields as Block PropertiesInclude additional JIRA fields as properties in your text blocks.Booleanfalse
showLinkShow issue linkDisplay the issue link.Booleanfalse
showKeyShow issue keyDisplay the issue key.Booleanfalse
showLinkedKeyShow issue key as link.Display the issue key as link.Booleanfalse
showSummaryShow SummaryDisplay the issue summary.Booleanfalse
showAssigneeShow AssigneeDisplay the issue assignee.Booleanfalse
showPriorityShow PriorityDisplay the issue priority.Booleanfalse
showFixVersionShow Fix VersionDisplay the fix version.Booleanfalse
showStatusShow StatusDisplay the issue status.Booleanfalse
showReporterShow ReporterDisplay the issue reporter.Booleanfalse
showResolutionShow ResolutionDisplay the issue resolution.Booleanfalse
appendCustomTagsAppend your custom tagsAppend your custom tags.String""

Settings for a Second JIRA Account (Optional)

Configure a second JIRA account if needed:

Setting KeyTitleDescriptionTypeDefault
enableSecondEnable Second JIRA AccountEnable or disable settings for a second JIRA account. Reload the plugin or restart Logseq after changing this setting.Booleanfalse
jiraBaseURL2JIRA Base URL for Second AccountEnter the base URL for your second JIRA instance (e.g., xyz.atlassian.net). Do not include 'https://' or a trailing '/'.Stringorgname.atlassian.net
jiraUsername2JIRA Username for Second AccountEnter the username for your second JIRA account (usually an email address).String""
jiraAPIToken2JIRA API Token for Second AccountEnter the API token for your second JIRA account. You can generate one here.String""
jiraAuthType2JIRA Authentication Method for Second AccountChoose the authentication method for your second account: Basic Auth or Personal Access Tokens.EnumBasic Auth
jiraAPIVersion2JIRA API Version for Second AccountSelect the API version used by your second JIRA instance. Change this only if you use an older on-premise version.Enum3

Possible issue text customization tokens (case insensitive) - New Feature

  • %key%
  • %statusCategoryIcon%
  • %statusCategoryName%
  • %summary%
  • %assignee%
  • %priority%
  • %fixVersion%
  • %status%
  • %issuetype%
  • %creator%
  • %reporter%
  • %resolution%

Usage

Once the plugin is configured, you can start pulling JIRA issue data into Logseq. The plugin will automatically update JIRA issue keys with their summaries and display additional JIRA fields as specified in the settings.

  • For updating Jira queries, enter the JIRA URL or Issue Key like 'PROJ-123' and the type /Jira, select 'Jira: Update Issue' to use the first organization's credentials, or 'Jira: Update Issue for 2nd Org.' for 2nd organization's credentials.
  • For pulling results from a JQL, type /Jira and select "Jira: Pull JQL results".

Example Usage

To insert a JIRA issue into your Logseq notes, simply type the issue key (e.g., PROJ-123), then type /Jira and select Update JIRA Issue to fetch and display the issue details based on your configuration.

Block Properties

If you enable the block properties settings, the plugin will add additional JIRA fields as properties to your text blocks, allowing you to see detailed information about each issue at a glance.

Example Demo

Demo

Current functionality

  1. Find and replace all JIRA URLs in the current block.
  2. Support for inline updates or appending block properties (Unique to Logseq)
  3. Supports both Jira Cloud and Jira On-Premise and API versions V3 and V2. (On Premise version is untested by developer, but community supported.)

Roadmap

  • Refresh summary on rerun on existing links.
  • Add more fields to help with context of the tickets
  • Added support for two Jira instances/organizations.
  • Experimental: Support for JIRA On-premise
  • Experimental: Support for JQL queries in children blocks (maxes out at 50 right now)
  • Experimental: Auto refresh/update all links when page is loaded.
  • Support for Org Mode vaults.
  • Create your own Link description format with Jira variables ( '{issueKey} - {status} - {summary}' )
  • Auto refresh all Jira links across vault (need to verify performance impact on doing this).

How to build the plugin

  • Git clone the repository to your local system. Or download and extract to a known path.
  • pnpm install && pnpm build in terminal to install dependencies and generate distribution folder.
  • Enable Developer mode in Logseq by going to Settings -> Advanced -> Turn on Developer Mode.
  • Load unpacked plugin in Logseq Desktop client and select the folder for the plugin on your disk.
  • For updates, git pull the main branch and 'Reload Package' under Plugins > Logseq Jira.

Release process

  • Update version in package.json
  • Add all updates to master branch
  • Tag the latest commit with new version.

Troubleshooting

If you encounter any issues, please check the following:

  • Ensure your JIRA base URL, username, and API token are correct.
  • Verify your JIRA instance's API version.
  • Make sure you have enabled the necessary settings for displaying JIRA data.

For further assistance, please refer to the plugin's documentation or contact support.

Contributing

Contributions to the Logseq-JIRA plugin are welcome. If you would like to contribute, please fork the repository and submit a pull request with your changes.

License

The Logseq-JIRA plugin is open-source software licensed under the MIT License.

Another small fix.