A lighting assembly (100, 200, 400, 500) for emitting light, the lighting assembly (100, 200, 400, 500) comprising: - an elongated structure (120, 900, 910, 940) comprising a substrate and comprising light emitting elements (122, 122') and power connections (420, 920) for providing power to the light emitting elements (122, 122') on the substrate, the light emitting elements (122, 122') being arranged in a longitudinal direction of the elongated structure (120, 900, 910, 940), - a heat transferring element comprising a base plate comprising a first side and an opposite second side, the heat transferring element comprising at the first side (104, 204, 504) a heat sink interface or a heat sink element and comprising at the second side (106, 206, 406, 506) one or more upstanding walls (108, 208, 338, 368, 408, 508) extending away from the second side (106, 206, 406, 506), the second side (106, 206, 406, 506) is opposite to the first side (104, 204, 504), the one or more upstanding walls (108, 208, 338, 368, 408, 508) comprising a heat conductive material and being thermally coupled to the first side (104, 204, 504), wherein the elongated structure (120, 900, 910, 940) is arranged on a wall surface (107, 107') of at least one of the one or more upstanding walls, the wall surface (107, 107') is one of the surfaces of the one or more upstanding walls (108, 208, 338, 368, 408, 508) that is adjacent to the second side (106, 206, 406, 506), a surface of the elongated structure (120, 900, 910, 940) through which no light is emitted by the light emitting elements (122, 122') is thermally coupled to the wall surface (107, 107'), wherein spaces between at least a portion of the one or more upstanding walls (108, 208, 338, 368, 408, 508) form channels (592, 592'), the light emitting elements (122, 122') are arranged to emit at least a portion of their light into the channels (592, 592'), and wherein at least 75% of the light emitting elements (122, 122') emit a portion of their light towards a second surface of an opposite wall of the channel, wherein the opposite wall of the channel is a portion of the one or more upstanding wall, the opposite wall having two surfaces adjacent to second side of which one is the wall surface and another one is the second surface, characterized in that the substrate is a flexible substrate and in that a pattern formed by the elongated structure (120, 900, 910, 940) is a meandering or spiral pattern, the pattern being defined in a cross-sectional plane parallel to the second side (106, 206, 406, 506), the meandering pattern comprising at least three turns and the spiral pattern comprising a plurality of windings. - an elongated structure (120, 900, 910, 940) comprising a substrate and comprising light emitting elements (122, 122') and power connections (420, 920) for providing power to the light emitting elements (122, 122') on the substrate, the light emitting elements (122, 122') being arranged in a longitudinal direction of the elongated structure (120, 900, 910, 940), - a heat transferring element comprising a base plate comprising a first side and an opposite second side, the heat transferring element comprising at the first side (104, 204, 504) a heat sink interface or a heat sink element and comprising at the second side (106, 206, 406, 506) one or more upstanding walls (108, 208, 338, 368, 408, 508) extending away from the second side (106, 206, 406, 506), the second side (106, 206, 406, 506) is opposite to the first side (104, 204, 504), the one or more upstanding walls (108, 208, 338, 368, 408, 508) comprising a heat conductive material and being thermally coupled to the first side (104, 204, 504),