...
Enable the API endpoint for the snashot snapshot you want to trigger via automation.
Copy and keep the two details provided in the snapshot macro configuration screen:
The web request URL
The API key
Define a Jira Automation rule, and in this rule, incorporate a “Send Web Request” Action. This is the action that will call the snapshot end point. Set these parameters:
In the “Web request URL” - paste the web request URL from snapshot.
HTTP method: set to POST
Web request body: set to EMPTY
Headers:
set a header that has these values:
key: jira-snapshot-api-key
value: set the API key from snapshot
Note:
We have seen sometimes that a perfectly valid configuration results in an automation that fails with a response code 411.
To resolve those situations:
To the failing “send web request” action, add a header:
Key= Content-Length
Value=0