Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I need help creating an automation rule to take specific text for an email summary and add the label

Brooke Fail
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2025

Hello,

I don't have any automation experience, but I am trying to add a jira automation rule to look at an email summary and pull specific information like Component, Label, and Custom Fields and apply those tags to the issue after its made. 

Example:  email summary contains "Project Name: Test", I would then like the automation rule to create the issue and apply "Test" in the custom field label "Project Name"

I have attached a screenshot of what the email summary says and the corresponding labels that need to be filled out. ... the image uploader isn't working 



Basically I want the info in the email summary to populate the custom fields in jira with the correct labels. 

Email Summary:

testing issue,
Project Name: Test
Component : Web


Id like the Jira issue to then be created and have the Custome Field I created (called Project Name and the Components field to be populated with the corresponding labels (Test and Web)

1 answer

2 votes
Mikael Sandberg
Community Champion
January 22, 2025

Hi @Brooke Fail,

Welcome to Atlassian Community!

Automation cannot be triggered on incoming emails, it runs after the issue has been created. But once the issue is created you use the text string smart values extract sub texts. You could use substringAfter( String separator) to get the project name and component. 

Brooke Fail
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 23, 2025

Ok, so if I use the substring after to extract the project name from the description, I can use another smart value to take that string and create a new label that matches the text? 

Mikael Sandberg
Community Champion
January 23, 2025

You do not have to use another smart value, all you would have to do use something like this to set the Project Name field for example:

{{issue.summary.substringAfter("Project Name")}}

This of course assume that the summary only have the project name as a sub string in the summary. If you need to extract multiple values then you could use create variable action and then use those later on in your automation.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events