This section has use cases that help you in understanding the usage of post functions. A few post-functions of JMWE have been deprecated and will no longer be enhanced. However, they still continue to work and you can configure and use the post-functions. But it is recommended to use their replacements instead.
On this page
Table of Contents | ||
---|---|---|
|
Assign to role member
A workflow post-function that assigns the target issue to a member of a selected project role.
Sample use cases:
On the creation of a Bug assign it to a user only if he is a Product Owner
...
Assign to last role member
A workflow post-function that assigns the target issue to the last assignee who belongs to the selected project role.
Sample use cases:
When a tester reopens an issue assign the issue to a Developer who last worked on it.
...
Expand | ||
---|---|---|
| ||
|
Build-your-own (scripted) Post-function
A post-function that allows you to run an arbitrary Nunjucks template (script). This can be used to create your own post-functions.
|
Build-your-own (scripted) Post-function
A post-function that allows you to run an arbitrary Nunjucks template (script). This can be used to create your own post-functions.
Add a worklog entry to the issue. You can do this using the callJira custom Nunjucks filter.
Expand | ||
---|---|---|
| ||
|
Clear fields
A workflow post-function that clears the value(s) of the selected field(s) of the target issue.
Clear the Fix Version/s field on the reopening of a ticket.
...
Expand | ||
---|---|---|
| ||
|
Comment issue(s)
A workflow post-function that creates a comment on the target issue(s). The text of the comment to be created can be any simple text or a text with Nunjucks annotations.
Sample use cases:
A customer using Jira Service Desk should be notified via comment when someone has started working on their support request.
...
Copy comments to related issues
A workflow post-function that copies the comment(s) of the current issue to the specified related issues
Sample use cases:
When a developer transitions an issue to "Customer Feedback" copy the developer's comment on the transition screen to the linked issue.
...
Expand | ||
---|---|---|
| ||
Now when you trigger the transition on the issue(s), the newly added comments on the issue are added to the linked issue |
Create issue
A workflow post-function that creates one or more new issue(s). The specifications of the issue(s) to be created can be customized using the options provided.
Sample use cases:
Create a documentation ticket only if "Needed" is selected in the "Documentation ticket" checkboxes field
Expand | ||
---|---|---|
| ||
|
...
Copy field value from linked issues
A workflow post-function that sets the value(s) of a selected field to the value(s) from the same/different field of an issue linked to the current issue through a selected link type.
Sample use cases:
Copy the Fix Version/s fieldfrom the Epic to a Story, while creating a Story.
Expand | ||
---|---|---|
| ||
|
...
Copy field value to linked issues
A workflow post-function that copies the value(s) of a selected field into the same/different field of all issues linked to the current issue through a selected link type.
Sample use cases:
Copy the Fix Version/s field from the Stories to Epic, after resolving a user story.
Expand | ||
---|---|---|
| ||
|
...
Copy field value from parent issue
A workflow post-function that sets the value(s) of a selected field with value(s) from the same/different field of an issue's parent issue.
Sample use cases:
When creating a child bug of another bug (i.e. the parent bug), copy the fields Assignee, Component and Affect versions if they are left empty.
Expand | ||
---|---|---|
| ||
|
Copy field value to parent issue
A workflow post-function that copies the value(s) of a selected field to the same/different field of the issue's parent issue.
Sample use cases :
Copy the labels from each sub-task to its parent when the sub-task is closed.
Expand | ||
---|---|---|
| ||
|
Copy value from field to field
A workflow post-function that copies the value(s) of a selected field to another field of the same issue.
Sample use cases :
Set the component of an issue with a value selected from a cascading field that carries the Main and Sub-components in parent and child.
Expand | ||
---|---|---|
| ||
|
...
Expand | |||
---|---|---|---|
| |||
|
Delete issue
A workflow post-function that deletes one or more issues.
Sample use cases:
Automatically move the issue to a project when it is approved.
...
Expand | ||
---|---|---|
| ||
Not suggested
|
Display Message to user
A workflow post-function that displays a message on the issue view page to the user triggering the transition.
On triggering a transition display a notification message on the issue view if a new issue has been created by the Create Issue(s) post-function with a link to the newly created issue.
Expand | ||||
---|---|---|---|---|
| ||||
The message will be displayed as shown below in the issue view. |
Email issue
A post-function that will send an email to certain recipients of the target issues specified in the post-function configuration.
Sample use cases:
Send an Email to the voters of the issue when a new feature is approved.
Expand | ||
---|---|---|
| ||
|
...
Expand | ||
---|---|---|
| ||
|
Increase value of field
A workflow post-function that increases the value of a selected numerical field by one.
Sample use cases:
Track the number of times a bug fix was rejected by the QA team.
...
Link issues to the current issue
A post-function that will link the current issue to all issues that satisfy a parameterized JQL query.
Sample use cases:
Link all the Faults in Service desk project to the current issue with "blocks" link type
...
Sequence of post-functions
A post-function that runs a sequence of JMWE post-functions on the target issues. This is the easiest way of making sure that a series of post-functions run in a predictable order during a transition - it is easier and more reliable than using Delayed execution as was previously recommended.
Create a new issue (using the Create Issue(s) post-function) and then send a notification email mentioning the new issue.
Expand | |||
---|---|---|---|
| |||
|
...
Expand | ||
---|---|---|
| ||
|
Set field value
A workflow post-function that sets the value of a selected field of the target issues to the specified value
Sample use cases:
Assign a reopened issue to the last person who last commented it.
Expand | |||
---|---|---|---|
| |||
|
...
Expand | |||
---|---|---|---|
| |||
|
Add the time spent during the rework on an issue in the Rework Hours custom field, every time a rework is performed on the ticket
Expand | |||
---|---|---|---|
| |||
|
...
Set field value from user entity property value
A workflow post-function that sets the value of a selected field of the current issue to the value of a User Property of the current user.
Sample use cases:
Store the Country, Department, Location, and Pin information of the Reporter of an issue into the issue itself while creating it.
...
Set field value of linked issues post-function - Deprecated - Use Set field value instead
Display the Man hours (a custom Numeric field) of an Epic as the sum of Man hours of all the user stories linked to the Epic.
...
Shared Action post-function
A post-function that runs an Action (a sequence of one or more JMWE post-functions), created in the Shared Actions page, on the target issues.
Sample use cases:
Setting multiple field values on the Create transition of every workflow of the instance
Expand | ||
---|---|---|
| ||
|
Transition issue(s)
A workflow post-function that triggers a transition on the target issues. This can be used to an issue one step further in the workflow.
Sample use cases:
Start the progress on an issue immediately after its creation.
...
Expand | |||
---|---|---|---|
| |||
|
...
Transition linked issue - Deprecated - Use Transition issues(s) instead
A workflow post-function that triggers a transition on all issues linked to the current issue through a selected link type.
Sample use cases:
All the cloned issues of an issue should transition through the workflow in parallel with the current issue.
Expand | ||
---|---|---|
| ||
|
...
Expand | ||
---|---|---|
| ||
|
Transition parent issue - Deprecated - Use Transition issues(s) instead
A workflow post-function that triggers a transition on the parent issue of the current issue.
Sample use cases:
Start progress on the parent issue when someone started working on its sub-task.
Expand | ||
---|---|---|
| ||
|
...