Open ferventcoder opened 8 years ago
https://gist.github.com/ferventcoder/7c259f0a615b17399da7
curl --output "jira.issues.txt" --silent -H "Content-Type: application/json" https://tickets.puppetlabs.com/rest/api/2/search?jql=project=PUP+AND+fixVersion=%223.6.0%22+Order+by+key+ASC&maxResults=300&fields=key,summary (this is the original)
https://tickets.puppetlabs.com/issues/?jql=resolution%20%3D%20Unresolved%20AND%20status%20not%20in%20(Accepted%2C%20%22Ready%20for%20Engineering%22%2C%20%22In%20Progress%22%2C%20%22Ready%20for%20Merge%22%2C%20%22Ready%20for%20CI%22%2C%20%22Ready%20for%20Review%22)%20AND%20NOT%20type%20%3D%20Epic%20AND%20text%20~%20windows%20ORDER%20BY%20fixVersion%20ASC
which translates to:
https://tickets.puppetlabs.com/rest/api/2/search?jql=resolution%20%3D%20Unresolved%20AND%20status%20not%20in%20(Accepted%2C%20%22Ready%20for%20Engineering%22%2C%20%22In%20Progress%22%2C%20%22Ready%20for%20Merge%22%2C%20%22Ready%20for%20CI%22%2C%20%22Ready%20for%20Review%22)%20AND%20NOT%20type%20%3D%20Epic%20AND%20text%20~%20windows%20ORDER%20BY%20fixVersion%20ASC
Side note: this is similar to my WindowsUntriaged filter - https://tickets.puppetlabs.com/issues/?filter=12627
Once you have your search, just replace issues/? with rest/api/2/search?
issues/?
rest/api/2/search?
https://gist.github.com/ferventcoder/7c259f0a615b17399da7
curl --output "jira.issues.txt" --silent -H "Content-Type: application/json" https://tickets.puppetlabs.com/rest/api/2/search?jql=project=PUP+AND+fixVersion=%223.6.0%22+Order+by+key+ASC&maxResults=300&fields=key,summary (this is the original)