How would I create a "Labels" field in a macro config?

First off, I’m admittedly pretty new to writing confluence plugins (though not new to web dev in general), so I apologize if this should be obvious. I’ve been reading through docs and googling and I’m stumped.

What I’m trying to do:
I’m trying to use Forge to create a Confluence Macro that has a Config with field that allows users to select one or more labels, similar to the field in the Content by Label macro:
image

Where I’m stuck:
I’ve got the general setup for the Macro and the Macro’s Config just fine, but I am stumped on how to create a labels field. I’m hoping I’m just missing something obvious and I don’t have to create that functionality from scratch, but if I do any direction on how to do it would be greatly appreciated.

1 Like