Hi,
I have being using a JQL query for a long time, and suddenly stop working. I was in a middle of an internal migration (migrating servers in my organization), so I didn't use the query/script for about two weeks. Yesterday, when I run it, didn't work at all.
This is the script:
#!/bin/bash
for (( i=0; i<9000; i=i+100))
do
curl -u 'user@domaon:_token_that_works' -X POST -H "Content-Type: application/json" --data '{"jql":"order by updated asc","startAt":'$i',"maxResults":1000,"fields":["key","created","updated","summary","assignee","status","customfield_11400","project","reporter","customfield_10000"]}' https://mydomain.atlassian.net/rest/api/2/search | jq -r '.issues[]' --compact-output >> /some/path/jira.json
done
In the first part (curl), the only thing I get is:
{"startAt":0,"maxResults":100,"total":0,"issues":[]}But If I go to the same URL (https://mydomain.atlassian.net/rest/api/2/search), with a regular browser, I see the tickets there...
Where is the problem?
Sacha