Workflow to Invoke Amazon Lambda function

Pre-requisit

Create Amazon IAM User if not exists.

https://ilaesolution.atlassian.net/wiki/spaces/ASD/pages/889880595

 

Step-1

Go to Jira project configuration ** In Workflows tab Click EDIT Icon.

In Post Functions tab section, Click Add Post Function.

 

Step-2

Choose Amazon Code Pipeline Execution Function and Click Add.

 

Step-3

Configure Post Function and Click Add.

Here is example to use Issue fields in Lambda JSON payload:

1 2 3 4 5 6 7 { "tracking": "{issuekey}", "team": "{customfield_10201}", "customer": "{customfield_10200}", "release": "{fixversions}", "owner": "{assignee}" }

Note. You can find custom field ID at, Issues > Custom Fields > Click Edit > You will find in URL.

Supported System Fields:

1 2 3 summary, description, key or issuekey, type or issuetype, status, priority, components, labels, fixversions, affectsversions, assignee, reporter, environment

 

Step-4

Review and Click Publish.

 

Step-5

Transition Issue and verify if Amazon Lambda Function triggered with status notification in issue comment.