Send JSM Forms information with automation - Send email action
Currently, it's not possible to send the form in a Jira notification. However, we can use an automation rule to send the email using the Send Email action.
There are different ways to send the form information in the notification that will be sent through the automation rule and it will depend if the user is a licensed user or a customer account:
Licensed users
For licensed users with internal access to the project, we can use the workaround described in the following document:
Customer accounts
For customer accounts, we can also send the PDF of the form to the customer but with different and additional steps compared to the licensed users. The following knowledge base article contains the steps to send attachments to customers using the automation rule:
As mentioned in the document, to work as expected, the attachment should be visible to the user through a public comment in the request. Thus, it's important to note that, when a form is added to a request and the option Save a PDF version of this form each time it's resubmitted is enabled in the Form settings, the form is saved internally as an attachment file on the ticket, meaning it's not saved in a comment. Thus, to workaround this limitation, we can add an automation action to add a comment(public) with the attachments added to the ticket.
The automation rule will look similar to the one shown in the screenshot below:
Customers must see the respective attachments on the request on the Portal to open the attachment links. This means:
- The customer must be authenticated in the Portal
- They also must be able to see the request where the attachment pertains to on the Portal by being:
- Reporter
- Request Participant
Member of an Organization the ticket is being shared with
- If you identify a "Comment body can not be empty!" error during rule execution, add a "Re-fetch issue data" action after the initial trigger
- Last but not least, the attachment should be visible to the customer through a comment in the request
Licensed users and Customer accounts
We can also send form information using smart values:
First alternative:
We can link the form field to a Jira field and use the Jira field in the automation rule:
Then, create the automation rule and add the smart values associated with these Jira fields to the Content (under Send email action in the automation). More details on how to find the smart values can be found in this document: Jira smart values - issues
Second alternative:
We also have a workaround to fetch information from the form into a JSON. You can find the steps for it in the community article below:
Also, please note that we have a feature request asking for the ability to send form information in the notifications, as we can see below:
- JSDCLOUD-11195Getting issue details... STATUS