Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-338

Ability to send a ticket attachment using Send Mail function

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Actions
    • 0
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Issue description

      Currently, it is not possible to include an issue attachment using the Send Email action in an automation rule.

      Example 1

      • Let's assume that an automation rule was configured to use the Send Email action and use the following smart value in the content of the email:
        {{issue.comments.last.body}
        

      • If a comment is added to a ticket including an attachment as shown below:
      • The generated email will include the text from the comment, but it will not render/include the attachment. Instead, a reference to the attachment will be included:
        !attachment.jpg|thumbnail!
        

      Example 2

      • Let's assume that an automation rule was configured to use the Send Email action and use the following smart value in the content of the email:
        Issue attachment: {{issue.attachment}}
        
      • If the rule is triggered and the email is sent, the email will contain the attachment metadata (including its link), but not the actual attachment file:
        AttachmentBean{self='http://localhost:8081/jira8201/rest/api/2/attachment/11400', id=11400, filename='LocalTest_IssueCreatedFromCreateButton.png', author=UserBean{name='julien', key='JIRAUSER10000', accountId='null', emailAddress='someaddress@test.com', displayName='Julien Rey', active=true, timeZone='Europe/Helsinki', locale='null'}, created=Tue Jul 11 14:08:01 CEST 2023, size=229915, mimeType='image/png', content='http://localhost:8081/jira8201/secure/attachment/11400/someimage.png'}
        

      Suggestion

      Add the ability to include issue attachment when using the Send Email action

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              f1e7d539da78 Tom
              Votes:
              13 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: