The invention discloses an automatic spraying production line for an elongated structure workpiece. The automatic spraying production line comprises a digital conveying unit, an automatic spraying unit, an automatic drying unit and a centralized electric control unit, the digital conveying unit comprises a conveying line, a workpiece grabbing and stacking device, a follow carrying frame and a conveying electric control device, the automatic spraying unit is arranged in a process working area of the conveying line and comprises a box type cover, a coating waste gas recovery device, a spraying device and a spraying electric control device, the automatic drying unit is arranged in the process working area of the conveying line and comprises a drying bin and a drying electric control device, and the centralized electric control unit comprises a central controller, a digital conveying unit control loop, an automatic spraying unit control loop and an automatic drying unit control loop. According to the automatic spraying production line, the automation degree is high, the uniformity of a coating can be ensured on the premise of achieving intelligent spraying operation on the elongated structure workpiece, and the is suitable for the spraying process of the long and thin structure workpiece, and the production line is particularly suitable for the spraying process of a net rack connecting rod.