I have basic knowledge of scriptrunner so I want to create a email notification in a postfunction when an Issue is blocked in Jira cloud.
issue.priority.name in ['Critical', 'Blocker']
Dear ${issue.assignee?.displayName},
The ${issue.issueType.name} ${issue.key} with priority ${issue.priority?.name} has been assigned to you.
Description: $issue.description
How can I complete the rest of the code ?
Regards