#!/bin/bash
# Get the fix version from Jira and set it here
VER="2.13.8.GA"
# To run the script, enter `$ rn-reports.sh in the `jira-to-asciidoc` directory.
# For more info, see https://docs.google.com/document/d/1RjNzSuFsT2pZqMLzTUr9YT3PqjOWbmxmdJR70u97xas/edit#heading=h.5wbef38d6zkb

# Security Fixes

jbang ./run.java -t 'NDc4NTk2ODkyMjA4OuH5sxi5CoXDogyAizZ6Y5VOPQ3/' -s "https://issues.redhat.com" -q "project = Quarkus AND fixVersion = $VER  AND labels = security AND (status not in (NEW, 'To Do', 'In Progress') AND resolution in (Unresolved, Done)) AND issuetype != Sub-task ORDER BY priority DESC"  > security-fixes-$VER.adoc

# Resolved Issues

jbang ./run.java -t 'NDc4NTk2ODkyMjA4OuH5sxi5CoXDogyAizZ6Y5VOPQ3/' -s "https://issues.redhat.com" -q "project = Quarkus AND fixVersion = $VER AND (status not in (NEW, 'To Do', 'In Progress') AND resolution in (Unresolved, Done)) AND issuetype != Sub-task AND labels not in (SecurityTracking, platform) AND component != 'team/prod' ORDER BY priority DESC"  > resolved-issues-$VER.adoc


