I need to send email if the label status and defect is in certain status.
How do I specify this in groovy
if the label status is = "red flag"
AND
if the defects status is "Critical"
Also want to send the defect description and summary in the email template.
I have noticed that in the email all the lines are combined in the html template. How do I separate out each items in the email and get the email in this format using script runner
Defects Summary:
Defects description:
Assignee:
Defect submitted Date :