Forums

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

Automation for Jira: Call custom field within smart value?

Bill Goetz
Contributor
October 1, 2021

Anyone know if it is possible to call a custom field value from within the smart value context? Specifically the substringBetween(String open, String close)

Normally, I can put the two strings like so:

{{issue.description.substringBetween(("Start","End").isNotEmpty()}}

But I was actually wanting to be able to pull in the variable from a field, like so:

{{issue.description.substringBetween((issue.customfield_10700),"End").isNotEmpty()}}

 

2 answers

2 accepted

2 votes
Answer accepted
Alex Koxaras _Relational_
Community Champion
October 1, 2021

Hi @Bill Goetz 

I was able to pull this through. Take a look at my rule:

dynamic rule.png

Let me know if you want anything more.

0 votes
Answer accepted
Bill Goetz
Contributor
October 1, 2021

Perfect Alex! I was overthinking it a bit.

This worked out:

{{issue.description.substringBetween(issue.customfield_10700,"End").isNotEmpty()}}

Suggest an answer

Log in or Sign up to answer