Blanch the beef: Place beef shank into a large pot and cover with cold water (enough to cover the meat). Bring the water to a boil over high heat and blanch the beef for 3-4 minutes to remove any impurities. This step helps keep the broth clear. Drain and set aside.
Sauté the aromatics: Heat cooking oil in a large pot over medium heat. Add garlic, ginger, and the white parts of the scallions. Sauté until fragrant. Add doubanjiang, fermented black beans, and sugar. Stir until the sugar begins to melt.
Add the blanched beef shank back into the pot. Stir until the beef is evenly coated with the sauce.
Add tomatoes, beef stock, light soy sauce, dark soy sauce, bay leaves, cinnamon stick, Sichuan peppercorns, and star anise. Stir and bring to a boil.
Reduce heat to low, cover, and simmer gently for about 2 hours, or until the beef is tender.
Uncover and add potatoes, carrots, and onion. Cover and simmer for another 20–30 minutes, until the vegetables are fork-tender.
Adjust and serve: Remove the bay leaves, cinnamon stick, star anise, and Sichuan peppercorns as much as possible. Taste and adjust seasoning. Add cornstarch slurry if you prefer a thicker stew, or more beef stock if making noodle soup.