I wish to use a lambda function in AWS to create issues in JIRA using the jira-python sdk. I want to authenticate with OAuth, but need some help getting going.
Basically, I am unsure of what to put as my application url in JIRA's "Application Links"
Do I need to build a custom application in AWS?
Any help will be greatly appreciated, thanks!
You do not need to build a custom application in AWS for this to work, and as per Mibex Software's nice walk through on How to use OAuth with Atlassian products you can "just use any application URL"- their example is based on Bamboo, but applies to JIRA as well:
While Atlassian’s cloud solutions like Bitbucket Cloud make it very easy to use OAuth, the behind-the-firewall editions of Atlassian products like Bamboo Server make this significantly harder — yet not impossible. In this blog post, we will show you how you can access Bamboo’s REST API with OAuth1. To achieve this, we’ll make use of application links. Although we have chosen Bamboo here, the basic procedure is the same for JIRA, Confluence and Bitbucket Server.
Sure, you can either use the Jira REST API, possibly via a client library for your language of choice (see other answer), or given you are on AWS already, you could also reuse the existing AWS-CreateJiraIssue Systems Manager Automation document that does the heavy lifting for you.
First you have to store your credentials in the Systems Manager Parameter Store - the automation flow might then be:
Thanks for the reply. I have a query regarding this i.e. how do I link the cloudwatch alarm and the lambda function. For example: If I am getting alarms for cpu over utilisation (I am aware of the inbuilt ec2 monitoring) then how to trigger lambda on getting that alarm so that when the lambda function gets triggered a ticket is created in jira.
Thanks and Regards,
I work with miniOrange,an Atlassian marketplace vendor.
We provide a REST API authentication app for Jira which can authenticate the APIs using AWS as OAuth provider.
If you're using Jira's REST API's to create an issue in your Lambda function, then you can use this app to authenticate it using AWS's OAuth access token.
If you would like to explore this solution further, just drop us an email at email@example.com, we would love to discuss your use case further.
Learn how to use two new reports for next-gen projects in Jira Cloud: Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events