Welcome to the step-by-step guide on how to set up and use the JIRA JQL Generator Slack Bot template on the Lazy platform. This template is designed to help you generate Jira Query Language (JQL) queries directly from Slack. When you mention the app in a Slack message, it will create a JQL based on your message and ask if you want to run the query. If you agree, it will execute the query on Jira and return the results in the same Slack thread.
To get started with this template, simply click on "Start with this Template" on the Lazy platform.
Before you can use the JIRA JQL Generator Slack Bot, you need to set up a few environment secrets. These are necessary for the app to communicate with Slack and Jira. Here's what you need to do:
Enter these details in the Environment Secrets tab within the Lazy Builder interface.
Before using the template, you need to set up integrations with Slack and Jira:
These steps are crucial for the app to function correctly and to ensure that it can communicate with both Slack and Jira.
Once you have set up the environment secrets, you can use the Test button to deploy the app. The Lazy CLI will prompt you for any required user input after you use the Test button. If the app requires additional input, provide it through the Lazy CLI as prompted.
If the app uses an API, Lazy will provide you with a dedicated server link to use the API. In the case of FastAPI, you will also receive a docs link to interact with the app.
After deploying the app using the Test button, you can interact with the Slack bot directly within your Slack workspace. Mention the bot in a message to generate a JQL query. The bot will respond in the thread, asking if you want to run the generated query. If you choose to run it, the bot will execute the query on Jira and return the results in the Slack thread.
Here's a sample interaction with the bot:
User: @JiraBot Find all open bugs in the project ABC
Bot: Generating a JQL, please wait...
Bot: Generated JQL: `project = 'ABC' AND issuetype = 'Bug' AND status = 'Open'`. Do you want to run this query? [View JQL](JiraLink)
Clicking "Yes" will run the query and the bot will post the results in the thread. Clicking "No" will cancel the operation.
By following these steps, you can easily set up and use the JIRA JQL Generator Slack Bot on the Lazy platform to streamline your workflow and enhance your productivity within Slack.
This app allows users to interact with a Slack bot, ask a question about the data in a table or request the table schema, and then uses the latest ChatGPT to generate a query that is executed on BigQuery to return the results. The app includes a retry mechanism for query generation in case of an error (up to two retries) and provides the LLM with the table info to generate more accurate queries. The table schema is only printed if it is successfully retrieved. All errors from retries are now passed to the LLM. The generated query is printed before the results, and the results are displayed in a pretty table format. The bot uses the Slack API to send and receive messages and parses the user's message to determine the action to take. The bot always responds in a thread to the original message.