android/.github/scripts/jira-get-release-notes

Get Release Notes from Jira script

Fetches release notes from Jira issues.

Prerequisites

uv pip install -r pyproject.toml

Usage

./jira_release_notes.py RELEASE-1762 example@example.com T0k3n123

Output Format

The script retrieves the content from a custom field and handles two types of Jira release notes formats:

  1. Bullet Points:
• Point 1
• Point 2
• Point 3
  1. Single Line:
Single line of release notes text

Jira JSON format example

Single line

...
"customfield_10335": {
    "type": "doc",
    "version": 1,
    "content": [
        {
            "type": "paragraph",
            "content": [
                {
                    "type": "text",
                    "text": "Single line release notes"
                }
            ]
        }
    ]
},
...

Bullet points

...
"customfield_10335": {
    "type": "doc",
    "version": 1,
    "content": [
        {
            "type": "bulletList",
            "content": [
                {
                    "type": "listItem",
                    "content": [
                        {
                            "type": "paragraph",
                            "content": [
                                {
                                    "type": "text",
                                    "text": "Release notes list item 1"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "listItem",
                    "content": [
                        {
                            "type": "paragraph",
                            "content": [
                                {
                                    "type": "text",
                                    "text": "Release notes list item 2"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "listItem",
                    "content": [
                        {
                            "type": "paragraph",
                            "content": [
                                {
                                    "type": "text",
                                    "text": "Release notes list item 3"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "listItem",
                    "content": [
                        {
                            "type": "paragraph",
                            "content": [
                                {
                                    "type": "text",
                                    "text": "Release notes list item 4"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
},
...