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

On JIRA service desk how can I get a date from ticket summary with format DD/MM/YYYY

marafado88 September 4, 2024

Hello everyone,

On JIRA service desk how can I get a date from ticket summary with format DD/MM/YYYY, have any one did this before?

Have tried with Summary contains and Issue fiedls condition steps, but nothing:

Screenshot_648.pngScreenshot_647.pngScreenshot_646.pngScreenshot_645.png

From audit logs:


 

{{smart values}} condition
Error rendering smart-values when executing this rule:
Failed to get value for ('(\\d{2}/\\d{2}/\\d{4})')
Is there here someone experienced within JIRA automation? I am really fresh with this :(

1 answer

1 accepted

3 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 4, 2024

Because you are using regex you cannot use the Issue field condition, instead you would have to use {{smart values}} condition and the contains regular expression like this:

Screenshot 2024-09-04 at 10.11.11 AM.png 

Also note that your regex has to look like this:

\d{2}\/\d{2}\/\d{4}

marafado88 September 5, 2024

Ah ok, worked, thank you!

By any chance, with "Edit Issue" action, what expression should be used with {{issue.summary}} to get that match?

HAve tried with {{issue.summary.match('\d{2}\/\d{2}\/\d{4}')}} but no luck.

Do you have a good documentation source from where I could use as reference just for this level of JIRA automations?

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 5, 2024

You can't use regex with Edit issue, instead you would have to use substringAfter() like this:

{{issue.summary.substringAfter(" - ")}}

This assume that the format for the summary is always the same.

Like marafado88 likes this
marafado88 September 5, 2024

Have changed the date to duedate format, and it worked but there was no changes made/applied on the ticket that triggered the automation, do you know what could be?

Screenshot_651.pngScreenshot_652.png

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 5, 2024

Without knowing what your automation looks like I cannot say why you get an error on IS-904.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events