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
Hi @Thomas G,
The following automation rule should meet your needs:
Here are the details of the Create variable action:
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Manon Soubies-Camy ,
We have a German-format date in the Summary extracted by Assets automation (Data Center) from the relevant attribute:
Output in Summary: „Maintenance task for USI001 - LUBRICATION 12 on 18.Dez.24”
Using RegEx, we can successfully isolate the Date string, but Jira Service Management (DC) encounters an error when we want to replace the shortened Month reference with the digits:
Is there perhaps another way to get Jira to recognize our date format?
Or could we even change the format to something recognizable by Jira in the Assets automation?
Best regards,
Paul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Manon Soubies-Camy
Could you help me reverse this rule so if I update the due date it will update the summary?
https://community.atlassian.com/t5/Jira-Software-questions/Update-summary-with-updated-due-date/qaq-p/2329197
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you used on / off in the variable, you have to use the whole name onboarding/OffboardingDate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.