{"id":26289967,"url":"https://github.com/slack-samples/bolt-python-jira-functions","last_synced_at":"2025-05-07T22:43:52.016Z","repository":{"id":242132431,"uuid":"741220216","full_name":"slack-samples/bolt-python-jira-functions","owner":"slack-samples","description":"An application used to authenticate and interact with Jira Server","archived":false,"fork":false,"pushed_at":"2025-05-01T19:36:04.000Z","size":32,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-01T20:33:09.454Z","etag":null,"topics":["next-gen"],"latest_commit_sha":null,"homepage":"","language":"Python","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/slack-samples.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-10T00:07:30.000Z","updated_at":"2025-05-01T19:36:08.000Z","dependencies_parsed_at":"2024-05-31T20:45:43.709Z","dependency_job_id":"2962a330-3351-4a0b-a693-198506117583","html_url":"https://github.com/slack-samples/bolt-python-jira-functions","commit_stats":null,"previous_names":["slack-samples/bolt-python-jira-functions"],"tags_count":0,"template":false,"template_full_name":"slack-samples/bolt-python-custom-step-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slack-samples%2Fbolt-python-jira-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slack-samples%2Fbolt-python-jira-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slack-samples%2Fbolt-python-jira-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slack-samples%2Fbolt-python-jira-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slack-samples","download_url":"https://codeload.github.com/slack-samples/bolt-python-jira-functions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252967973,"owners_count":21833245,"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":["next-gen"],"created_at":"2025-03-14T23:17:30.812Z","updated_at":"2025-05-07T22:43:51.983Z","avatar_url":"https://github.com/slack-samples.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bolt for Python Jira Functions\n\nThis is a Bolt for Python app used to interact with Jira Server through custom\nfunctions for use in\n[Workflow Builder](https://api.slack.com/start#workflow-builder).\n\n## Setup\n\nBefore getting started, make sure you have a development workspace where you\nhave permissions to install apps. If you don’t have one setup, go ahead and\n[create one](https://slack.com/create).\n\n### Developer Program\n\nJoin the [Slack Developer Program](https://api.slack.com/developer-program) for\nexclusive access to sandbox environments for building and testing your apps,\ntooling, and resources created to help developers build and grow.\n\n## Installation\n\n### Create a Slack App\n\n1. Open [https://api.slack.com/apps/new](https://api.slack.com/apps/new) and\n   choose \"From an app manifest\"\n2. Choose the workspace you want to install the application to\n3. Copy the contents of [manifest.json](./manifest.json) into the text box that\n   says `*Paste your manifest code here*` (within the JSON tab) and click _Next_\n4. Review the configuration and click _Create_\n5. Click _Install_ button and _Allow_ on the screen that follows. You'll then be\n   redirected to the App Settings dashboard.\n\n### Environment Variables\n\nBefore you can run the app, you'll need to store some environment variables.\n\n1. Rename `.example.env` to `.env`\n2. Open your apps setting page from this list, click **OAuth \u0026\n   Permissions** in the left hand menu, then copy the Bot User OAuth Token. You\n   will store this in your environment as `SLACK_BOT_TOKEN`.\n3. Click ***Basic Information** from the left hand menu and follow the steps in\n   the App-Level Tokens section to create an app-level token with the\n   `connections:write` scope. Copy this token. You will store this in your\n   environment as `SLACK_APP_TOKEN`.\n4. Follow these\n   [Jira Instruction](https://confluence.atlassian.com/adminjiraserver0909/configure-an-incoming-link-1251415519.html)\n   to create an external application and get the `Client ID` (`JIRA_CLIENT_ID`)\n   and `Client secret` (`JIRA_CLIENT_SECRET`) values.\n5. Populate the other environment variable value with proper values.\n\n### Local Project\n\n```zsh\n# Clone this project onto your machine\ngit clone https://github.com/slack-samples/bolt-python-jira-functions.git\n\n# Change into this project directory\ncd bolt-python-jira-functions\n\n# Setup your python virtual environment\npython3 -m venv .venv\nsource .venv/bin/activate\n\n# Install the dependencies\npip3 install -r requirements.txt\n\n# Start your local server\npython3 app.py\n```\n\n#### Linting\n\n```zsh\n# Run ruff from root directory for linting\nruff check\n\n# Run ruff from root directory for code formatting\nruff format\nruff check --fix\n```\n\n#### Testing\n\nFor an example of how to test a function, see\n`tests/functions/test_create_issue.py`.\n\nRun all tests with:\n\n```zsh\npytest tests/\n```\n\n## Using Steps in Workflow Builder\n\nWith your server running, your function is now ready for use in\n[Workflow Builder](https://api.slack.com/start#workflow-builder)! Add it as a\ncustom step in a new or existing workflow, then run the workflow while your app\nis running.\n\nFor more information on creating workflows and adding custom steps, read more\n[here](https://slack.com/help/articles/17542172840595-Create-a-new-workflow-in-Slack).\n\n## Project Structure\n\n### `manifest.json`\n\n`manifest.json` is a configuration for Slack apps. With a manifest, you can\ncreate an app with a pre-defined configuration, or adjust the configuration of\nan existing app.\n\n### `app.py`\n\n`app.py` is the entry point for the application and is the file you'll run to\nstart the server. This project aims to keep this file as thin as possible,\nprimarily using it as a way to route inbound requests.\n\n### `/listeners`\n\nEvery incoming request is routed to a \"listener\". Inside this directory, we\ngroup each listener based on the Slack Platform feature used, so\n`/listeners/shortcuts` handles incoming\n[Shortcuts](https://api.slack.com/interactivity/shortcuts) requests,\n`/listeners/views` handles\n[View submissions](https://api.slack.com/reference/interaction-payloads/views#view_submission)\nand so on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslack-samples%2Fbolt-python-jira-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslack-samples%2Fbolt-python-jira-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslack-samples%2Fbolt-python-jira-functions/lists"}