I am trying to create issue using REST API with curl command which is
curl -d "@issue.json" -H "Content-Type: application/json" -X POST -u username:password https://jirasd.mycompany.com/rest/api/2/issue/ | python3 -m json.tool
Curl commands executes successfully and the new issue creates in project but when i am trying to execute cronjob for every minute with this command is not working as expected i tried below workflows
$ crontab -e
$ * * * * * curl -d "@issue.json" -H "Content-Type: application/json" -X POST -u username:password https://jirasd.mycompany.com/rest/api/2/issue/ | python3 -m json.tool
After saving no response at all. Please guide me if i am giving wrong formats in crontab?
I even tried commading like
* * * * * /home/desktop/test.sh still not working
* * * * * /home/desktop/test.sh >> /tmp/test.json It throws me an error of {"errorMessages":["No content to map to Object due to end of input"]}
Please help me to fix this issue.
Regards,
CN