Forums

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

Compare condition with smart value in Second value

Vasumathi Jayakumar September 26, 2018

I would like to compare the first value against the second value which is a custom field (single list).

The rule works fine if I give the list of options as second value. Something like the below one

First value : {{issue.customfield_12234.name}}

Condition : Contains regular expression

Second value : (option1|option2|option3)

But the list is slightly long, so I would like to use smart value in second value. Please see below:

First value : {{issue.customfield_12234.name}}

Condition : Contains

Second value : {{issue.customfield_12345.value}}

Is this possible?

Or how to find whether a value is present in the list  (which is a custom field)or not?

Any help is greatly appreciated.

Thanks

1 answer

0 votes
Scott Harwood
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 27, 2018

Hi Vasumathi,

 

That should work correctly. Can you please surround your smart values with {{#debug}}.

{{#debug}}{{issue.customfield_12234.name}}{{/}}

and

{{#debug}}{{issue.customfield_12345.value}}{{/}}

 then re-run the rule and send a screenshot of the values it prints to the audit log.

 

If this is private data please feel free to get in touch with us directly at support.

https://codebarrel.atlassian.net/servicedesk/customer/portal/1

 

Thanks,

Scott.

Vasumathi Jayakumar September 30, 2018

Hi Scott,

Thanks for your reply. 

I have enclosed both the screenshots where the rule worked[1] and where the rule did not work[2].

[1] Here the second value is the list of options.

Screen Shot 2018-10-01 at 08.18.16.png

 

[2] Here the second value is also a smart value 

{{issue.customfield_12345.value}}

Screen Shot 2018-10-01 at 08.38.11.png

Please let me know, if you need further details.

Thanks,

Vasumathi

Suggest an answer

Log in or Sign up to answer