Forums

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

Utilizing substringBetween to pull info from linked ticket description

Jon Nason
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2023

Hey y'all,

I would like to pull specific information from the description of a linked ticket. I'm using this smart value:

{{issue.issuelinks.first.inwardIssue.description.substringBetween("issue.customfield_15201",";")}}

Using this smart value I'm able to retrieve the description:

{{issue.issuelinks.first.inwardIssue.description}}

But when I add .substringBetween("issue.customfield_15201",";") there is no error and no information retrieved. Are there inherent problems with stacking the substringBetween command? Is the problem using a custom field on the ticket as the starting point of the substring?

Thanks in advance for your time and attention!

1 answer

1 accepted

0 votes
Answer accepted
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 Champions.
January 17, 2023

Hi @Jon Nason -- Welcome to the Atlassian Community!

Please try removing the quotes around the field in your function call:

{{issue.issuelinks.first.inwardIssue.description.substringBetween(issue.customfield_15201,";")}}

Kind regards,
Bill

Jon Nason
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2023

That worked! Thanks @Bill Sheboy

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer