Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation - IF Commenter is an approver

Deleted user
October 4, 2022

Hi all,


Is it possible for JIRA Automation to detect if a commenter is an approver, through JQL or through the automation GUI.

I want to make it so if an approver replies to a ticket via email with the body containing 'Approve' or 'Decline', it will approve or decline the ticket, but I need to verify this will only work if the commenter is the approver.

I'm not interested in using this method https://support.atlassian.com/jira-service-management-cloud/docs/manage-settings-for-approval-by-email/ and would prefer JIRA Automation

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 5, 2022

Hi @[deleted] 

First thing, I am not using JSM and so am basing my ideas on the documentation...

It appears the {{approval}} and {{approval.addedApprovers}} smart values are only available with the triggers for approvals: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--approval--

You may confirm that by finding an example issue with approvers and using this how-to article to see the available smart values: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

If the addedApprovers are available, try a user condition to test your comment's author.

If the fields are not available, you would need to hardcode the possible approvers in a rule condition test using their accountId values.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events