The article on using Amazon with automation list steps on how to invoke different action but completely fails to provide info on how to use the data returned by these actions. Can someone please help? In particular how do I access the return Lambda data after calling "Invoke function from Amazon Lambda" action.
https://support.atlassian.com/cloud-automation/docs/use-amazon-with-automation/
I finally figured it out (accidentally) that the data can be found in {{triggeredAmazonFunction}} smart value. The data is of the following format:
{payload={statusCode=200, headers={Content-Type=application/json}, body={"message": "Hello", "some": "Thing"}, pathParams={functionName=arn:aws:lambda:us-west-2:123412341234:function:hello}, queryParams={}}}This does not seem to be documented but it can be found in the UI when you click on the Smart values button: '{ }'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mike! When you use the "Invoke function from Amazon Lambda" action in Jira automation, the response data is typically available in the {{webhookResponse.body}} smart value. You can access specific fields using dot notation like {{webhookResponse.body.yourFieldName}}. Try logging the full response first using the "Log action" to see the exact structure of what your Lambda returns. Also make sure your Lambda is returning a properly formatted JSON response with a statusCode and body. Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{{webhookResponse}} does not work for the "Invoke function from Amazon Lambda" action. I think it only works for the "Send web request" action
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.