Forums

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

Automation to update fields based on description?

Justin Morgan November 27, 2023

Our HR system sends a request into our email which Jira picks up.  We have automation setup to set the Request type and organization but is there a way we can update fields based on the email description?   

 

For example we get the info below that always looks the same.  We'd like to capture "Fred Flintstone" and append their name to the end of the summary and set "12/4/23" to the due date.   Is this possible?  

 

"Our newest teammate Fred Flintstone has signed their offer. Their first day will be on 12/4/23"

 

2 answers

0 votes
Murat Seven
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 27, 2023

Hi @Justin Morgan

It seems like you're consistently receiving similar requests. I understood that this system operates in a static manner. If I've misunderstood, please correct me. If I'm right, I believe I can fulfill this request using the automation I shared in the screenshot below.

 

Screen Shot 2023-11-27 at 8.20.27 PM.pngScreen Shot 2023-11-27 at 8.20.43 PM.png

Screen Shot 2023-11-27 at 8.20.10 PM.png

 

Best,

Murat Seven

David Friedrich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 27, 2023

Hi @Murat Seven ,

I could be wrong, but I believe that "Fred Flintstone" and the start date are supposed to be examples. @Justin Morgan would need to extract the variable name and date from the email / description field and have it added to the summary and due date.

Like Murat Seven likes this
0 votes
David Friedrich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 27, 2023

Hi @Justin Morgan ,

yes that is possible as you can extract certain content via regex. 

Here is a very good article that should help you:

https://confluence.atlassian.com/jirakb/extract-content-out-of-description-and-summary-with-regex-and-automation-1157495262.html

Justin Morgan November 27, 2023

Your other post is correct. This seems exactly what I'm looking for... trying it out now, thanks!!!!

Like David Friedrich likes this
Justin Morgan November 27, 2023

Worked perfectly!!!   Only issue is setting the due date as its in mm/dd/yyyy and it needs to be 'yyyy-MM-dd"

 

Doesn't look like regex can change format so any ideas?

Murat Seven
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 27, 2023

Hi @Justin Morgan 

you can following docs might help:

.format("yyyy/MM/dd")
Justin Morgan November 27, 2023

I saw that but not really sure where to place it since there's already the regex formula.  Below is what I have which outputs mm/dd/yyyy

{{issue.description.match(".*will be on (\S+)")}}

Suggest an answer

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

Atlassian Community Events