Support expressions to get custom field values of individual issues

Have more questions? Submit a request

4 Comments

  • 1
    Avatar
    David Lunsford

    Using the "Send PDF" Action, it would  be very beneficial to have dynamic fields to include "Reporter", "Assignee", and as stated "Watchers" such as the "To" field options in the "Send Email" Action.

    We have a need to have each ticket when it changes from an Open/In-Progress to Closed status Exported to PDF then sent to users defined as "Reporter", "Assignee", and "Watchers" fields dynamically. I tried a work around but having a second action attach the PDF export for certain triggers upon each trigger is unacceptable.

    Edited by David Lunsford
  • 1
    Avatar
    Cole Adams

    This is a feature of the Automation for JIRA plugin, so it is surprising that this is not supported by the "Send PDF" extension action. I would have thought extensions would have the capabilities available from the base plugin.

    Our use case is that we need to send PDF's to all watchers on an issue which is a multi-user picker field. We don't always send to the same people, so it needs to be dynamic. The only way to do that would be with a custom expression. Right now we can only send to single user picker fields.

  • 0
    Avatar
    David Lunsford

    @aron

    The request is
    ```
    User Picker(multiple users)), watchers, reporter, and assigned to be sent an email with a PDF report that summarizes the issue.
    ```

    I am missing the "User Picker" custom field e-mail addresses (dynamic) and "Watchers" field dynamic addresses. Most importantly, if the syntax for the fields above can be supported great but the preference would be to have a GUI selection. As stated if the expressions for the following fields are supported excellent.

  • 0
    Avatar
    Aron Gombas

    David, 

    To me it seems what you look for is doable. You should these expressions as shown in the user manual:

    ## email address of the first issue's creator (typically used as a target email address)
    ${issues.get(0).creator.emailAddress}
    
    ## email address of the first issue's assignee (typically used as a target email address)
    ${issues.get(0).assignee.emailAddress}

    This should work for reporter:

    ${issues.get(0).reporter.emailAddress} 

    Or, am I missing something?

Please sign in to leave a comment.