edit action to have issue field = regexp of summary field?

David Loszewski February 4, 2020

Hello,

Is there a way to have an edit action to have an issue field = the regex results returned from the summary line of that issue?  I already have the regex figured out, but I don't see an option that would work.  I see "Set value" and "Copy from..." but the set value operator looks like it sets a static value.   

Example of what i want: 

When: issue is created

Then: Edit issue fields

Serial number = regexp(?<=Serial: ).*?(\w+)) of field summary

 The summary line of the created issue would look like the following which is automatically emailed into our jira service desk:

Alert - Missing Syslog - Serial: 2874d7

 

Thank you. 

1 answer

1 accepted

0 votes
Answer accepted
Simmo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 4, 2020

Hi David,

It is indeed possible. You'll just need to use smart values here to achieve this. Your action should look something like this:

regex.pngIn my case, Field A is another field on the issue. I'm then using a smart value to perform the regex and set it to the result. You want to use the match function. There is more on smart values in our docs, https://docs.automationforjira.com/reference/smart-values.html#issue.

Cheers,

Simeon.

David Loszewski February 5, 2020

that worked! Thank you! 

Suggest an answer

Log in or Sign up to answer