Im using Automator on mac to create a simple "Big Red Button" that employees can run, It asks for their name ($1), their location ($2) and their issue ($3). I have it set up to pass these arguments as $1 $2 and $3 into a bash script that goes to pushover and slack so I get notifications there, I wanted to also have it pass to Jira. Here is what I have sofar:
curl -D- -u username:APIkey -X POST --data '{"fields":{"project":{"key": "CCM"},"summary": "$1 at $2" ,"description": "$3","issuetype": {"name": "Service Request"}}}' -H "Content-Type: application/json" https://company.atlassian.net/rest/api/2/issue/
obviously I dummied out my username, API key and company subdomain, but using this it creates the issue, but it dosent pass the arguments, it just adds "$1 at $2" as text. I tried without the quotes and it doest work at all.
Is this possible? what am I missing?
Thanks!