Narrative:

During climb out I deviated 30 degree off departure control's assigned heading to avoid a buildup. Before we told the controller of this deviation he told us to turn left approximately 070 degree. (We were approximately 130 degree.) in the turn, traffic was called out and we were told to climb from 5000 ft to 11000 ft. While in the turn, climbing, and into a cloud, the TCASII went off telling us to climb 2500 FPM to avoid hitting the other aircraft. We never saw the other plane because we were IMC, but I suspect we were within 1 NM of him at co-altitude. The moral of this story is to never deviate off an assigned heading until at least informing the controller of your intentions.

Google
 

Original NASA ASRS Text

Title: POTENTIAL CONFLICT WITH LTSS CREATED BY HDG TRACK DEV INSTIGATED BY FLC DEV FROM RTE. FLC RESPONSE WAS TO TAKE EVASIVE ACTION CLB.

Narrative: DURING CLBOUT I DEVIATED 30 DEG OFF DEP CTL'S ASSIGNED HDG TO AVOID A BUILDUP. BEFORE WE TOLD THE CTLR OF THIS DEV HE TOLD US TO TURN L APPROX 070 DEG. (WE WERE APPROX 130 DEG.) IN THE TURN, TFC WAS CALLED OUT AND WE WERE TOLD TO CLB FROM 5000 FT TO 11000 FT. WHILE IN THE TURN, CLBING, AND INTO A CLOUD, THE TCASII WENT OFF TELLING US TO CLB 2500 FPM TO AVOID HITTING THE OTHER ACFT. WE NEVER SAW THE OTHER PLANE BECAUSE WE WERE IMC, BUT I SUSPECT WE WERE WITHIN 1 NM OF HIM AT CO-ALT. THE MORAL OF THIS STORY IS TO NEVER DEVIATE OFF AN ASSIGNED HDG UNTIL AT LEAST INFORMING THE CTLR OF YOUR INTENTIONS.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.