Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,642,110
Community Members
 
Community Events
196
Community Groups

Extract a date from summary string and apply to Due date

Hi community,

I am trying to extract a date from summary and apply that date to the Due date field. I have a similar challenge as mentioned in this post but my date appears in the middle of the string and not at the end, hence making the right() function unusable here.

I thought I could use the match() function but have not succeeded.

Here is my summary: Create New User Bill Gates (NYC) on 10/30/2021 is approved

I would like to extract 10/30/2021 from this string.

I have unsuccessfully tried putting the following in an edit issue fields component: {{issue.summary.match("(\d+\W\d*\W\d*)").toDate}}

 

Any tips much appreciated!

 

Best regards
Thomas

3 answers

1 accepted

8 votes
Answer accepted
Manon Soubies-Camy _Modus Create_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 19, 2021

Hi @Thomas G,

The following automation rule should meet your needs:

rule-details.png

Here are the details of the Create variable action:

variable.png

You can copy the smart value below:

{{issue.summary.match("(\d{1,4}([.\-/])\d{1,2}([.\-/])\d{1,4})")}}

Here are the details of the Edit issue action:

edit.png

You can copy the smart value below:

{{newDueDate.toDate("MM/dd/yyyy")}}

Let me know if this works on your side too!

- Manon

Hi Manon and thank you for your swift reply. Much appreciated!!

Your solution works perfectly 😃

I also tried skipping creating the variable and simply adding the date formatting (tip by you) in my original config, and that works too. 

{{issue.summary.match("(\d+\W\d*\W\d*)").toDate("MM/dd/yyyy")}}

 

Thanks again and have a great day ahead!

 

Best regards
Thomas

Like # people like this

@Manon Soubies-Camy _Modus Create_ 

hi Manon,

I have the same issue here that I need to parse the date from the issue summary (example:onboarding Huniya Akbar (iCC UK, 31.07.2022)) then put it to the Onboarding / Offboarding Date field we have, I had checked your solution and Thomas's too, the syntax should definitely work for me too but unfortunately it didn't, there is no value for the field after the automation has been applied. any idea why?

re001.PNG

re002.PNG

re003.PNG

re004.PNG

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events