Preheat oven (electric cooker: 200 °C/circulating air: 175 °C/gas: see manufacturer). Divide chicken legs in the joint into upper and lower legs, wash and pat dry. Mix 1/2 tsp salt and 2 tbsp oil. Rub the chicken parts all around with it and place in a roasting pan.
Bake in the oven for about 1 1/4 hours.
Peel onions and garlic. Cut the onions into thin slices, cut the garlic into slices except for 1 clove. If necessary, peel and wash the potatoes and cut them into halves or quarters depending on their size. Wash herbs, dab dry and chop.
Mix the potatoes, herbs, onions, garlic slices and 4 tablespoons of oil. After about 15 minutes frying time, spread around the legs.
Wash and halve or quarter the tomatoes. Add the tomatoes and olives to the legs and potatoes after about 40 minutes frying time.
For the piri-piri paste, clean the chilli, cut lengthwise, remove seeds, wash and finely chop. Dice 1 garlic clove. Mix both with 2 tbsp. brown sugar, 1 tsp. salt and 4 tbsp. olive oil. Approx. 15 minutes before the end of the frying time, brush the chicken legs 2-3 times with it.
Season potato vegetables with salt and pepper and arrange everything. Green chili sauce tastes good with it.