Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign a variable using smartvalues and Regex

Jay January 30, 2024

I'm attempting to pull data from a Jira ticket body and add it as a comment. There is a lot of information in the body of the ticket that is non important, so I'm using regex to pull the important info out and add a comment for my team. I've tested the regex to make sure they capture the right information so the regex works (outside of Jira). 

Then I use
{{issue.description.match([\s\S]*?(?=Recommendation))}} in an attempt to create a smart value. 

Screenshot 2024-01-30 135002.png

Now am I doing this wrong? Do I need to so something to pull that information BEFORE i attempt to create the variable. Any help would be amazing as I am stuck at this point because the info in these tickets to change so i cannot hard code anything.

1 answer

1 accepted

0 votes
Answer accepted
Rebekka Heilmann _viadee_
Community Champion
February 14, 2024

Hi @Jay 

can you post the whole rule? If the Regex works (I've not checked that) ... The rest of the syntax looks fine. 

Usually no need for a step in between.

Jay March 12, 2024

I apologize, I was able to figure this out using a different rule setting. I will "Accept" this answer to close the question. Thank you.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events