HI,
If I have workflow and there and requests can be rejected in many phases, and I am using email notification to send to group of uses and i want to add the user that reject the request. How can I do this ?
each phase have many users only one is enough to be rejected so I want to add only the user who reject the request
You can use Automation for Jira
Use as trigger: Approval completed
Then an advanced compare with:
{{approval.decision}} equals declined
Then the send email component with this in the body
{{#issue.fields.Approvals.approvers.get(0)}}
{{#if(equals(approverDecision,"declined"))}}
{{approver.displayName}}
{{/}}
{{/}}
This will tell you who declined your request.
You can also use the above in a variable and use .emailAddress instead of .displayName to be able to extract the email address of the person who rejected it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.