I am trying to automate the creation of Jira tickets for Apache airflow DAG failures so that it doesn't need to be done manually.
So far I have created a dummy dag to test with, along with the Python file for said dag and have also created the SNS topic for the dag failure which I have connected to a Lambda function to trigger the Lambda function and notify me when it is triggered.
I'm struggling now to connect the Lambda function to Jira so that when a dag fails and triggers the SNS topic and the Lambda funciton it creates a Jira ticket into the "To do" tasks.
Hi @Joshua Agona , and welcome to the Atlassian Community!
Can you clarify whether you want to create an issue in Jira Cloud or Jira Data Center? I'll assume Cloud as the more common option (the recommended solution also works in Jira Data Center though).
While you could leverage the Jira Cloud REST API to achieve that, I recommend to use the Jira automation platform, which provides a better out of the box experience plus audit logging and debugging aids. You'll need the Incoming webhook trigger and the Create issue action.
There are a several Community articles touching on the subject, however, the slightly misnamed Creating a webhook via Jira automation article provides a straight forward walk through on how to achieve that conceptually. You only need to adopt it to your specific payload and use case.
Good luck,
Steffen
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.