The Herzum Add Approval Summary on linked issues Post Function allows to add a Jira comment on the issues linked to an issue that collected the requested approval replies when this issue transitions in the destination status following the approbations or rejection. The Jira comment will report the the Summary of the Approvals collected in the current issue. |
In order to allow the post function to work properly, ensure to enable the Approval History by navigating on
Manage apps → Global Configuration → Approval History → Enable Approval History
Follow the steps below to setup the Add Approval Summary on linked issues post function on a workflow transition:
Super User (Required) - used to evaluate the applied criteria and to put the final approval reply into a comment in the linked issues:
Any of the specified criteria will be evaluated based on the selected user. Ensure that the selected user has appropriate browsing permission on the projects to whom the current and related issues belong to.
Issue Link types (Required): the Jira Comment will be added on the Issues linked to the current Issue and matching the selected Outward Descriptions.
Customize the text of the approval log (Optional): Here you can customize the Approval Summary (see How to Customize the text of the approval log). If this field is not filled, the default option is applied. The default Approval Summary Comment appears as follows:
JQL filter for linked issues (Optional): the post function will be executed only on the issues that satisfy the JQL filter
JQL filter for current issue: (Optional): the post function will be executed only on the issues that satisfy the JQL filter
In order to allow the post function to work properly, remember to keep it on the top (prior to Set issue status to the linked status of the destination workflow step).
You can Add the Post-function on any transition.
The Approval Summary is filled with last approval decision for each mapping applied on the issue identified by its Source status and transition on approbation.
You are able to customize the text of the approval log as described below.
Select a Locale to translate the logged Actions (Approved, Rejected, Abstained, Reset) based on the Language pack translations associated with the selected Locale.
Select the option Custom in order to set up
Add a Conditional Tag (Optional), in order to evaluate the expression only if a specific condition (e.g.
<tag>expression</tag>) is meet. Allowed Tags are:TAG_IF_COMMENT = "ifComment";
TAG_IF_COMMENT_IS_FALSE = "ifComment isFalse";
TAG_IF_APPROVED = "ifApproved";
AG_IF_APPROVED_IS_FALSE = "ifApproved isFalse";
TAG_IF_REJECTED = "ifRejected";
TAG_IF_REJECTED_IS_FALSE = "ifRejected isFalse";
AG_IF_ABSTAINED = "ifAbstained";
TAG_IF_ABSTAINED_IS_FALSE = "ifAbstained isFalse";
AG_IF_PENDING = "ifPending";
TAG_IF_PENDING_IS_FALSE = "ifPending isFalse";
add any admissible issue field inside the squared brackets [ ]. Admissible fields are:"Approval Name", "Action", "Source Status", "Transition", "Approver", "Date", "Comment", "Destination Status", "Can Approve Detail", "MandatoryOptional"
Example - {• Source Status: } &[Source Status]& {\\ } &{• Transition Name: }&[Transition]& {\\ } &{• "}&[Approval Name] &{" }&{: } &[Action]&{ by }&[Approver]&{ on }&[Date] & {\\ }
You can have multiple conditional tags concatenated by '&'
Example -
{• Status: } &[Source Status] & {\\ } &{• Transition: }&[Transition]& {\\ }
&<ifComment>{• Approver Comment: } &[Comment]</ifComment>
&<ifComment isFalse>{• The Approver has not inserted any comment}</ifComment isFalse>&{\\}
&{• "} &[Approval Name] &{" }&{: }&[Action]&{ by }&[Approver]&{ il }&[Date] & {\\ }
You are able to Review how the Custom Approval log will appear depending by:
The following screenshots illustrates the result of a Run Test by example.
Assuming to have the following Scenario
When the post function runs, any linked Issue that belongs to project=PostFunction, in addition to the current issue that meets the condition project=PostFunction, will get the following Jira comment: