Steps to Create
1. Add Email issue(s) post-function
Log in to your Jira instance as an Administrator.
In the upper right corner of the window, click Settings ( ⚙️ ) and select Issues.
In the left-hand sidebar, click Workflows.
From the list of Workflows, click Actions ( ) for the appropriate workflow and select Edit.
Edit the transition:
When viewing the Workflow in Diagram view (Figure 1, right), select the Transition and click the Post Functions link. Click Add post function at the top of the list of existing post functions.
When viewing the Workflow in Text view, click the name of the Transition then select the Post Functions tab. Click Add post function at the top of the list of existing post functions.
Select Email issue (s) (JMWE app) from the list of post-functions and click Add.
2. Configure the post-function
Set the following configurations (Figure 2, right):
Target Issue(s) to operate on (Point 1, Figure 2, right)
Set Target Which issue(s) to Issues linked to the current issue through the following link type.
Set Issue Link to blocks.
Pick a template - Set as needed.
Email content (Point 2, Figure 2, right)- Set the email fields as required; you can use Nunjucks templates Groovy expressions to generate dynamic values. See the documentation for Email issue(s) for more information.
Attachments (Point 3, Figure 2, right) (Point 3, Figure 2, right)- Set as needed.
Recipients (Point 34, Figure 2, right) - Set Issue members to Assignee. Set any other recipients as needed.
Run As Sender (Point 45, Figure 2, right) - Set as needed; it is recommended to leave the default Add-on user value unless required for specific reasons.
Conditional execution (Point 56, Figure 2, right)
Check the box for Run this post-function only if a condition is verified.
In the Condition field, enter
{{ issue.fields.issuetypeget("issuetype")?.name == "Bug" }}
Delayed execution Error Handling (Point 67, Figure 2, right) - Set as needed.
Click Add.
Info |
---|
Configuration OptionsThe configuration of several options above, will depend on your organizational structure and on your specific process. For example:
|
3. Publish and Verify
Include Page | ||||
---|---|---|---|---|
|
Panel | ||
---|---|---|
| ||
You’re done!Now, when a closed issue is reopened it will automatically be reassigned to the last member of the Developers project role to which it was assigned. |