Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to automate Jira ticket creation with AWS Lambda

Joshua Agona
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 9, 2024

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.

1 answer

0 votes
Steffen Opel _Utoolity_
Community Champion
July 10, 2024

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

Suggest an answer

Log in or Sign up to answer