PRE-REQUISIT
Create Amazon IAM User if not exists.
Create IAM User for Amazon Codesuite
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:
{ "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:
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.