JSONB stores a parsed document. The -> operator returns JSON, while ->> returns text. Use text extraction before a deliberate cast when a field contains a number you need to calculate with. A key can be absent, contain JSON null or contain an empty string; those cases don't mean the same thing.
The ? operator tests whether a top-level key exists. Containment with @> asks whether a document contains a requested structure. JSON array order doesn't define a relational output order, and expanding an array can multiply its parent row. Keep the event ID when you expand tags.
The fixture includes an absent priority, an explicit JSON null and an empty tag list. Decide which case a report needs rather than replacing all of them with a single label. Typed relational columns still suit values that need consistent constraints and frequent joins.
Use text extraction for a text result; priority is a different field.