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
It is indeed possible. You'll just need to use smart values here to achieve this. Your action should look something like this:
In 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.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event