{"id":13908223,"url":"https://github.com/gsingers/slack-jira-plugin","last_synced_at":"2025-07-18T07:30:40.741Z","repository":{"id":25725871,"uuid":"29162931","full_name":"gsingers/slack-jira-plugin","owner":"gsingers","description":"A Slack plugin that watches channels for messages about JIRA and acts accordingly","archived":false,"fork":false,"pushed_at":"2020-10-10T21:03:37.000Z","size":66,"stargazers_count":252,"open_issues_count":5,"forks_count":83,"subscribers_count":19,"default_branch":"main","last_synced_at":"2024-11-25T17:46:01.500Z","etag":null,"topics":["bot","jira","slack-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gsingers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-12T23:39:06.000Z","updated_at":"2024-08-11T01:16:00.000Z","dependencies_parsed_at":"2022-08-24T14:11:30.595Z","dependency_job_id":null,"html_url":"https://github.com/gsingers/slack-jira-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gsingers/slack-jira-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsingers%2Fslack-jira-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsingers%2Fslack-jira-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsingers%2Fslack-jira-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsingers%2Fslack-jira-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsingers","download_url":"https://codeload.github.com/gsingers/slack-jira-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsingers%2Fslack-jira-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265720369,"owners_count":23817218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","jira","slack-plugin"],"created_at":"2024-08-06T23:02:33.482Z","updated_at":"2025-07-18T07:30:40.516Z","avatar_url":"https://github.com/gsingers.png","language":"JavaScript","funding_links":[],"categories":["HarmonyOS","JavaScript"],"sub_categories":["Windows Manager"],"readme":"# Slack JIRA Bot Plugin\n\nJIRA Bot integration with [slack](http://slack.com).  The bot automatically appends a link to a message whenever there is a mention of a JIRA issue in the message, for example:\n\n![Sample screenshot of JIRABot in action](https://cloud.githubusercontent.com/assets/399372/23093176/ef3cf790-f5a9-11e6-9785-197edcef04d7.png)\n\n\n## Usage\n\n```javascript\ngit clone https://github.com/gsingers/slack-jira-plugin.git\ncd slack-jira-plugin\nnpm install\n```\n\nWrite your own configuration file (`config-example.js`) is a good starting point for building your own.\n\n```javascript\nvar slackbot = require('./lib/bot');\n\nvar config = {\n  showIssueDetails: true,\n  issueDetailsToShow: {'fields.summary':1 , 'fields.assignee' : 1, 'fields.creator' : 0, 'fields.description': 0},\n  showDetailsByDefault: true,//if true, you don't need the '+' to get details\n  bot_name: \"jira\",//Provide the name to post under\n  token: 'XXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXX', // https://api.slack.com/web\n  jira_urls: {\n    // DEFAULT NODE IS REQUIRED.\n    \"DEFAULT\": {url: \"https://default.jira.server/browse/\"},\n    // These should match projects from the projects property where you want to use a configuration other than the default\n    \"SOLR\": {\n      url: \"https://issues.apache.org/jira/browse/\",\n      jira: {\n        user: 'username', // be sure to use the username, not the user email\n        password: 'password',\n        host: 'hostname',\n        protocol: 'https',\n        port: 443,\n        version: '2',\n        verbose: true,\n        strictSSL: true\n      }\n    },\n    \"GRANT\": {url:\"http://grant.jira.server/jira/browse/\"}\n  },\n  search_cmd: \"search\",\n  //Since search results can be verbose, you may not want to muddy the channel\n  search_output_chan: \"C02U1L9KZ\",//if the value is \"this\", then the current channel will be used, else the name of a channel\n  projects: [\"REPLACE\", \"ME\", \"WITH\", \"YOUR\", \"PROJECT\", \"NAMES\", \"GRANT\", \"SOLR\"],\n  post: true,\n  verbose: true,\n  custom_texts: {\n    messagePrefix: \"Hey, thought this might help: \" //message you might like to prefix to JiraBot's post\n  },\n  emoji: \":jira:\", // be sure to upload your custom emoji in slack\n  link_separator: \", \",// use \\n if you want new lines\n  error_channel: '' //the id of the channel to send low level log errors.  If not defined, will use the current channel\n};\n\n//DO NOT EDIT BELOW HERE\nvar slackbot = new slackbot.Bot(config);\nslackbot.run();\n```\n\nSave this to a file in the root of the project then run your bot with:\n\n    node your-config-file, eg.: node config-gsingers\n\nThis will launch the bot in your terminal based on provided configuration.\n\n## Configuration\n\n- `token`: Your Slack API token, get your token at https://api.slack.com/web\n- `issueDetailsToShow`: Details from JIRA you want to be rendered in Slack\n- `jira_urls`: A mapping of JIRA project names to the URL that can display that JIRA issue, i.e. SOLR -\u003e https://issues.apache.org/jira/browse/\n- `projects`: A list of JIRA project names, as in SOLR, MAHOUT, LUCENE\n- `post`: If true, then post a new msg, else update the current one\n- `verbose`: print logging info\n- `custom_texts.messagePrefix`: An optional message that you can prefix at the beginning of the bot's message that will be posted\n- `emoji`: The emoji to use for the bot.  You may need to create a JIRA emoji for the current one to work, else replace w/ your favorite slack emoji\n- `link_separator`: The text to use to separate links in the response.\n\n## TODO\n\n- Deeper integration w/ the JIRA API\n- Optionally restrict to certain config'd channels\n- bot.js expandInfo conflicts with \"+\" providing feature or that feature is not done yet\n- Possible Issue: Whenever code compiled and server restarted, it runs parsing for the last posted message again, even though it might have been processed already in the previous run.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsingers%2Fslack-jira-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsingers%2Fslack-jira-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsingers%2Fslack-jira-plugin/lists"}