I've never heard that word, perhaps it's more of an American expression? In the UK we'd probably say bittersweet.
There's also the laugh-cry emoji, which can be used for both situations, I think.
For bittersweet, there's one about smiling with a tear.
For tragicomic, I don't know. It's not a feeling. Maybe the upside-down smiley or the smile with sweatdrop?