I have been using Linzess for about 18 months or so. Early on I hated it due to the bloating. I was on a higher dose then, so I am not 100% sure if that was the reason the bloating was so bad (I had a lot of other issues at the time). I gradually reduced to one 72 mcg/day. I take it the minute I wake up, and I don't eat for 30-60 minutes. I have tried taking it later in the day and/or closer to food, and all that did was cause horrific bloating.
For relief there is only so much you can do, and everybody's system reacts differently. I take the lowest does of Linzess in the morning. At bedtime I take Motegrity, Milk of Magnesia (most nights) and drink senna tea. To relieve bloating I use GasX chewables, yoga poses, and heat. If you don't already have one, I recommend the bags of rice that you can heat in the microwave. Supposedly peppermint helps (supplement or tea), but it never did much for me. Here is a video I used to use, too: https://www.youtube.com/watch?v=IvAx7q2LKqk