Forums

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

Nunjucks help

Nodar Vardiashvili
Contributor
October 11, 2019

Hi, 

I want to use JMWE psot function

i have one custom field : Vpn Installation

 I want Run This post function when vpn installation = Vpn access our services (cisco vpn) or Remote access from vpn . how write this correctly ?
Screenshot_111111.png

1 answer

0 votes
John Funk
Community Champion
October 11, 2019

Hey Nodar,

You need to do an in() with the two values inside of the parentheses. Or do the full issue.fields part in front of the second value.

If that doesn't do it and it doesn't like your field name, then click on the Issue Fields link and put in your custom field name to see the code for it. Then use that to replace the "VPN Installation" part.

John Funk
Community Champion
October 11, 2019

It will look something like:

{{ issue.fields["VPN Installation"].value == "VPN for Access Our Services (Cisco VPN)" or {{ issue.fields["VPN Installation"].value == "Remote Access from VPN" }}

Suggest an answer

Log in or Sign up to answer