Adding Comment Via a link in email.

Prem
Contributor
June 20, 2024

Hi,

 

I am using Jira service management from couple of years. I have almost used every functionality within it. Now I came up with an requirement of my client that he wants to add a default value as a comment via a link in the approval mail received. Like I want to create a html link in the mail body and on the click of that link it should automatically add a comment in the issue with a preset value. or if we can open a comment dilouge to capture the input. Please help me with this.

Please have a look on below and rectify me.

<p>

        <a class="mark-as-duplicate" href="${request.field.comment.add == 'Duplicate Request'}">Mar as Duplicate </a>

</p>

1 answer

0 votes
Marc - Devoteam
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 Leaders.
June 20, 2024

Hi @Prem 

You could try to add html like this:

<a href="mailto:jira@<tenant-name>.atlassian.net?subject=Re: {{issue.key}} Issue&body=Duplicate">Mark as Duplicate</a>

This should trigger a mail action tha the client only has to press sent on

Have an automation rule on the project if you want to action that comment, let's say decline the approval

Where the trigger is based on comment is the main action and the smart value condition is related to the {{triggerIssue.comment.last.body}} and this contains Duplicate and then add an action.

Prem
Contributor
June 20, 2024

Hi @Marc - Devoteam ,

 

Thanks for the reply. However, this doesn't meet my requirements. I need to add a hyperlink in the email body that, when clicked by the client, will trigger an action. This action should either add a comment to the issue or set the resolution to "Duplicate." The entire process needs to be handled within the email itself. I do not want the client to have to open the portal and manually mark the issue as a duplicate.

Marc - Devoteam
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 Leaders.
June 28, 2024

@Prem 

This I think can't be done, unfortunately.

You could reach out to the Atlassian Developer community, to see if they can help you out.

Suggest an answer

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

Atlassian Community Events