You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Commonly we find ourselves wanting to get some information out of a ticket summary to use that information for certain fields.
This is commonly a difficult task to do when working on tickets specially those that come via Email.
Today i’m here to show you how you can create an Automation that helps you out and gets that information for you and then automatically dumps it into a specific field.
For this we will be assisted by REGEX
REGEX is pattern based so we will need a couple pre-requisites before we begin:
I will Take the following example for this.
The text “Email: email@example.com“
In the above text my likely outcome would be to extract the E-mail so I can use it to fill a the Reporter field, or create a new user account or a multitude of options on which this can be helpful to have.
Let me break it down for you.
In the above example “Email:“ would be my recognizable pattern and “email“ will be the text to extract.
As long as we have these elements the rest of the Description or Summary can be whatever, since we know what to look for.
The other two recommendations to follow are the following:
If used in SUMMARY the text to extract would need to be at the end of the field.
If used in DESCRIPTION the text to extract needs to be in a separate line by itself and always contain a line break.
Recommendation would be to use Template as shown below:
Now that we have set the basis of how this will work we can begin!
Go to → Project Settings → Automation → Create Rule
Structure will be the following:
Trigger: Issue Created is the most common one for this example however if you need to do edits because of any other trigger you can do so as well.
Conditions: Can be any that you feel necessary
Actions: Can be any that you feel necessary.
The REGEX to use in this example is :
Breaking this down:
The part in Bold Section will be our REGEX which translates to:
The rest of the the line is the Smart Value that Allows us to use REGEX as part of our Automation.
For more information about Smart Values you can review this document:
And that's it! if you've made it this far it means that you have finished your Automation and you are extracting information!
A couple of notes before we leave!
You've got this!
Angel Rodolfo Macias Buendia