I am trying to set up a Jira automation chain that takes data from a webhook payload and creates a new issue with the specified information using smartvalues. This process is outline in the Jira automation section, but the given code doesn't seem to work. I can get the webhook to trigger the automation rule with the given curl command:
curl -X POST -H 'Content-type: application/json' \
https://automation.atlassian.com/pro/hooks/specific_id
However, it fails to post when I execute this command that is given to include additional data:
curl -X POST -H 'Content-type: application/json' \
--data '{'{"data": {"myData":"test"}}'}' \
https://automation.atlassian.com/pro/hooks/specific_id
I get the following error:
{"message": "Unsupported Media Type"}This makes me suspect there is something wrong with how I am sending the data. Has anyone had this problem or could help me out? Thanks!