Email Notifications about new Jira Comment
- Deploy Jira fields that will be used in flow ( link ).
- Create Record-Triggered Flow .
- In Configure Start, choose the Peeklogic Issue Comment object, select ‘A record is created’ under Configure Trigger.
- In the Get Records element, choose the Peeklogic Jira Issue object and set the condition: Id -> Equals -> {!$Record.peeklogic_jc__Jira_Issue__c}.
- In Get Records element, choose Case object and set condition:
Id -> Equals -> {!Get_Jira_Issue.peeklogic_jc__Object_Connect__r.Name}. - Select ‘All records’(if you have a one-to-one relationship between Jira Issue and Salesforce record, select ‘Only the first record’, complete step with Decision element and at once move to step with Action element ‘Send Email’).
- In Decision element, check if the collection of Case is not empty:
{!Get_Case} -> Is Null -> {!$GlobalConstant.False}.
In the Loop element, choose {!Get_Case} in the Collection Variable.
- Choose Send Email in Action element, populate values:
- Body – create variable with type Text Template;
- Recipient Address List – {!Loop_Case.Owner:User.ReceivesInfoEmails};
- Rich-Text-Formatted Body – {!$GlobalConstant.True};
- Sender Email Address – any email (there is used OrgWideEmailAddress);
- Subject – any subject.