The topological classification of gerbes, as principal bundles with the structure group the projective unitary group of a complex Hilbert space, over a topological space H is given by the third cohomology 20fdbdb692ae44b855223cadcfa2b8">. When H is a topological group the integral cohomology is often related to a locally continuous (or in the case of a Lie group, locally smooth) third group cohomology of H. We shall study in more detail this relation in the case of a group extension 1→N→G→H→1 when the gerbe is defined by an abelian extension of N. In particular, when vanishes we shall construct a transgression map 2005e48791dd1e0828e0da1cc69da40">, where AN is the subgroup of N-invariants in A and the subscript 2030685131" title="Click to view the MathML source">s denotes the locally smooth cohomology. Examples of this relation appear in gauge theory which are discussed in the paper.