This sample API proxy integrates with the Jira API to generate HTML-formatted release notes. It works by fetching issues from Jira that are tagged with a release_notes label. The proxy performs the following transformation pipeline:
- Fetches JSON data from the Jira API.
- Converts the JSON response to XML using a JSON to XML policy.
- Applies an XSL Transform policy using an XSL stylesheet to generate the final HTML.
The stylesheet specifically extracts text from a "Release Notes Summary" field. It also supports new_feature and known_issue labels, which are automatically categorized into their respective sections in the generated HTML.
If your Jira environment uses different fields, you must modify the URI query parameters (and the invoke.sh script if used) and update the .xsl resource file.