Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Problem using smart values in smart text value functions

I'm trying to use an issue smart value to manipulate text of another smart value (I'm not sure if this is supported), and getting the error:
"Error rendering smart-values when executing this rule:Failed to get value for AccountsReturned.substringBetween({{issue.Client-Contract: {{AccountsReturned.substringBetween({{issue.Client-Contract}}.value,"status=OPEN")}}"

 

The error results from trying to use a smart value in the substringBetween operator on another smart vaule: {{AccountsReturned.substringBetween({{issue.Client-Contract.value}},"status=OPEN")}}
(The action is just to post a comment)

The {{issue.Client-Contract.value}} smart value posts as a comment on it's own and using a normal string in place of the smart value allows the above function to run, but I want to dynamically filter the contents of the "AccountsReturned" smart value.

Please assist.

1 answer

1 accepted

2 votes
Answer accepted

Figured it out with the help of: https://community.atlassian.com/t5/Jira-Software-questions/Using-variables-in-functions-in-smart-values-in-JIRA-for/qaq-p/1630769

{{AccountsReturned.substringBetween(issue.client-contract.value, ", status=OPEN")

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

37 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you