Apply Filter on Item Group

I have a field named as “Property Group” of type link which is linked with “Item Group”. I created a item Group named as property and in which i have multiple subgroups such as lease items ,sales items etc
Now what i want to achieve is when i click on Property Groups it should display only groups which are in Property Item Group.
Any help will be appreciated
frappe.ui.form.on(‘Property’, {
setup: function(frm) {
frm.set_query(“property_group”, function() {
return {
“filters”: {
“item_group”: Property
}
};
});
}
});