Extract Value from Jira Ticket (Description Field)

Monica
Contributor
October 31, 2024

I need to extract the value for Business Unit so that I can use it on my automation rule, I believe I am close but not working yet.

Here is what I have so far:

{{issue.description.match("(?<=\\|Business Unit\\|)([^|]+)")}}

 

So what I want to grab is the value for Business Unit, which in the example below is "HomeOffice"

 

Here is how my data looks:

image.png

image.png

 

 

 

 

 

1 answer

0 votes
Clark Everson
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2024

Hi @Monica 

I would actually advise against this. Extracting text can take a lot of resources from the system which can impact performance. For any values that need to have this type of "extraction" it is better to make select list custom fields where the data isn't free form. And then the value can be used very easily in automation rules. We had a case where users were doing this type of text extraction and it actually made the project unusable for all of their users within that project

Best,

Clark

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events