While a user is sending an email to our support email address, Is there a way we can prefill the contents of the email body with a template having field labels like Summary, Description, Urgency etc ?
Hi @Zeeshan Ahmed Khan
Do you use Gmail?
If yes, then try Email&Tasks: Jira Cloud for Gmail. This app, developed by my team, allows you to convert your emails into tasks in Jira.
The add-on will also pull up your custom fields in your Jira, and you can easily create the necessary task directly from the inbox.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If a user (I would take that you mean a customer) sends an email to your support (Jira), then this email create a ticket having its subject as a summary and its body and description. The reporter of this ticket will be the sender of the email.
If your question was about to get/extract information from the email body, it is doable via Jira automation, BUT under certain strict conditions (you need to know exactly where to search for the specific information e.g. the urgency is located between the two first special characters of | ).
Now if your question was about you sending a reply to customer with certain information, then this can be done by using again Jira Automation (or another 3rd party app). In that case you need to read this https://support.atlassian.com/cloud-automation/docs/components-in-jira-automation/ and this https://support.atlassian.com/cloud-automation/docs/smart-values-in-jira-automation/
Let me know if the above helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Koxaras _Relational_ , thanks for responding. I would first like to know how to pre-fill the body of the email when someone cliks the <a mailto: support@mycompany.com /a> Link. Something like this:
Subject: Help needed
Body:
*Summary:
*Description:
*Urgency:
*Priority:
Impacted Service(s):
User details:
If the above is doable then the next step would be to extract that information from the fields and map to the corresponsing issue type fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Zeeshan Ahmed Khan this question of your about prefilling the subject of the email when pressing a link outside of jira, is not a jira related question... You could search stack overflow and google for a solution:
After that you can use smart values text fields, and all the variations of substring() function (substringAfter, substringBetween, substringBefore etc) to get the values you want. Trial and error will get you there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Koxaras _Relational_, I am now at a stage where I would like to extract information from the email received in my Jira service management project and to be populated into my incident ticket. My automation rule looks like this:
My email template looks like this:
Please complete the following questions to enable us to resolve your incident.
*Name:
*Urgency: High, Medium, or Low:
*Impact: High – System Wide, Medium – Multiple Users, or Low – Single User:
It seems to be working fine with the summary fields' extraction:
{
"fields": {
"A custom field": "{{issue.summary.substringBetween("*Name: ","*Urg")}}"
}
}
But is is failing if i try to extract data from the description field like this:
{
"fields": {
"A custom field": "{{issue.description.substringBetween("*Name: ","*Urg")}}"
}
}
Error I am getting is:
Error while parsing additional fields. Not valid JSON.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please paste the whole json code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Koxaras _Relational_ , that is my whole code that I have put in my Edit Issue Action as can be seen from the screenshot.
Let me put all the steps in my automation steps here:
Step 1: Rule is triggered when an issue is created
Step 2: I have got the JQL consition as below:
request-channel-type = email
Step 3: Then i have got the compare condition as below:
{{issue.desciption}} contains regular expression \*Name:
Step 4: Then I am doing Edit Action action and have put this code in athe Additional Fields section:
{
"fields": {
"My custom field": "{{issue.description.substringBetween("*Name: ","*Urg")}}"
}
}
The above is showing me that JSON is not valid, whereas if i just replace it with
{
"fields": {
"My custom field": "{{issue.summary.substringBetween("text:","text")}}"
}
} <-- this works fine
My aim is to extract the text written after *Name: and before *Urgency: from the description (email body). Looks like this:
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.