Forums

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

Extract date in MMM dd format from issue description and set custom field

Dutchie
Contributor
April 13, 2025

Hi community!

I'm trying to extract a date in the format MMM dd from an issue description and set that as a value in the due date. The regex I have for this is:

[A-z]{3},\s([A-z]{3}\s\d\d?)\s{3}[A-z]{3},\s[A-z]{3}\s\d\d?

This extracts the right date from the description, but I've been unsuccessful in converting this to a format that I can set in a date field.

This is what I've add as a log action which returns the expected date {{issue.Description.match("[A-z]{3},\s([A-z]{3}\s\d\d?)\s{3}[A-z]{3},\s[A-z]{3}\s\d\d?")}} but whenever I've tried to format it, the log entries go blank.

3 answers

1 accepted

2 votes
Answer accepted
Dutchie
Contributor
April 13, 2025

Realized that the reason this wasn't working for me is that you can't match and convert at once. I needed to create a variable for the the date where I added the year and then converted it to a date format.

 

Create variable varStartDate - {{issue.Description.match("[A-z]{3},\s([A-z]{3}\s\d\d?)\s{3}[A-z]{3},\s[A-z]{3}\s\d\d?")}}, {{now().format("yyyy")}}

Convert variable to date {{varStartDate.toDate("MMM d, yyyy")}}

 

0 votes
Beth Soprano
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!
July 22, 2026

I was looking for help after experiencing issues related to cryptocurrency and online investment scams. The service responded promptly, explained the recovery process clearly, and maintained communication throughout. While every case is different and MHR recovery can be guaranteed, I appreciated their professionalism and responsiveness.

If you're seeking assistance after becoming the victim of an online scam, be sure to do your own research and contact https : / / mightyhackarrecovery . com

0 votes
Vikrant Yadav
Community Champion
April 13, 2025

Hi @Dutchie Welcome to Atlassian Community!

The duedate must be of the format "yyyy-MM-dd", then only automation set duedate field value

Dutchie
Contributor
April 13, 2025

Thanks @Vikrant Yadav 

Like Vikrant Yadav likes this

Suggest an answer

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

Atlassian Community Events