Peel the onions, garlic and potatoes. Halve the onions lengthways once, then cut into slices. Roughly chop the garlic. Cut the potatoes into small cubes.
Fry the jackfruit in a little oil in a pan and season with half of the spices (paprika powder, smoked paprika, cayenne pepper, salt). Fry the sliced onions and coarsely chopped garlic until the vegetables also take on color. Then add tomato paste and fry with it. Shortly afterwards add agave syrup. Deglaze with red wine. Allow this to be reduced to about half and pour in the vegetable stock.
Add the remaining spices and also the rosemary and the potato cubes and stir well. Simmer over low heat (with a lid if necessary) for about 30 minutes. Season one last time.