Forums

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

What am I missing here with what I thought would be simple parsing

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 4, 2025

Hi there,

I have a large chunk of text that comes into an automation rule as a variable.

Part of that variable is this

text={"StarterName":"Jill Hampson","StartDate":"2025-09-19","Department":"Finance",  so on and so forth

I am just trying to create variables based on the values

the variable is called raw.

I was creating a new variable called StarterName with this

{{raw.substringBetween('"StarterName":"','"')}}


Unable to render smart values when executing this rule:
Failed to get value for raw.substringBetween('"StarterName":"','"'): {{raw.substringBetween('"StarterName":"','"')}}

What am I missing?



2 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2025

Hi @Ste404 

Please try using the jsonStringToObject() function.  For example:

{{jsonStringToObject(raw).StarterName}}

 

Kind regards,
Bill

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
September 5, 2025

Did you try using regexp?

{{raw.match("\"StarterName\":\"(.*?)\"")}}

It should return Jill Hampson.

Or, if you want to use substringbetween  make sure your delimiters exist exactly in the raw text. 

I think the below would work

 {{raw.substringBetween('"StarterName":"','","StartDate"')}}

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events