This is Jira Data Center 8.20. In an automation rule and Edit Issue action I am attempting to extract a section of the Description to set as the value of a multi-line text field. E.g. The Description may look like this.
Name: My Name
Title: My Title
Strengths/Weaknesses: Good coder, good unit tester
knowledge of multiple languages
weak at debugging code written by other developers
Preferred Location: The Beach
Documentation Status: Pending
What I want to extract is everything following "Strengths/Weaknesses: " up to "Preferred Location" and store this in a multi-line text field. So the resulting field would contain
Good coder, good unit tester
knowledge of multiple languages
weak at debugging code written by other developers
It seems to me that this should work but it doesn't.
{{issue.description.match("Strengths/Weaknesses: (.*?)Preferred Location:")}}
Other simple extractions like getting the Name work fine.
{{issue.description.split('\n').match("Name: (.*)").first}}
Looking for pointers...