The regulated release of a prostaglandin that contributes to the immune response. Prostaglandins are a group of biologically active metabolites which contain a cyclopentane ring.
Comment:
Note that this term is in the subset of terms that should not be used for direct gene product annotation. Instead, select one of the 'regulation' children terms.