I need a python script that will check Jira status in particular time interval (1 minutes) and once Jira ticket status is approved it will break the loop and proceed with further step (command: terraform apply). Could you please help out with code.
Using curl to fetch the Jira status:
curl -u username:password -X GET -H "Content-Type: application/json"
https://server-url/rest/api/2/issue/JRA-1?fields=status