README: Slack Triggered Jira Ticket Creation

This is a relatively complex Functions, featuring multiple triggers and custom error handling.

This function will create a Jira ticket based on a Slack thread if either

  1. A user reacts to a message with the :jira: emoji
  2. A public channel message starts with “Dear :jira:”

Prerequisites:

  • Jira account with a project that can be configured as a ticket destination
  • A :jira: emoji in your Slack workspace
  • Slack account (can be updated to an alternative chat/notification tool)
  • An OpenAI account and API key

TODOs:

  • Create a new function at function.zapier.com
  • Create a Slack "New Reaction" trigger that triggers when a user adds a :jira: reaction
  • Create a Slack "New Mention" trigger that triggers when a user mentions “Dear :jira:” in a specified channel
  • Copy the contents of the main.py file below and paste it into your new function's main.py file
  • Add the openai package to the packages tab in the right side panel of your new function.
  • Add your OpenAI API key as a secret called OPENAI_API_KEY to the secrets tab in the right side panel of your new function.
  • Update the Zapier actions in your main.py file. Search for TODOs to identify where this is necessary. Note: When you add your account_id functions may duplicate the params. Delete the new params & fill out the existing params.
  • Test by pushing 'Run Function' and when you are ready, deploy!
Loading