hello dears
I tried couple of options but not working any.
please check
1. {{ issue.fields["Customer Request Type"].requestType.id == "470" and issue.fields.customfield_11694 | find("Aviator") }}
2. {{ issue.fields["Customer Request Type"].requestType.id == "470" and issue.fields["Company"] | find("Aviator") }}
3. {{ issue.fields["Customer Request Type"].requestType.id == "470" and issue.fields["Company"].value == | "Aviator" }}
the field is multi selects choise.
Please explain in words what you are trying to accomplish, and where you are trying to use this information.
It looks like you are working to set a condition that is relevant to a Service Management project, based on your use of "Customer Request Type". Is that correct?
And the condition you are trying to set is for a Service Management issue where the Customer Request Type has the ID470, and the issue also has the value "Aviator" in a field named "Company". Is that correct?
What type of field is "Company"? Is it a text field, a selection field, a multi-select field, a Labels field, ...?
Have you used the Nunjucks Tester to test your condition against specific issues? What are the results? Have you tested each of your conditions independently to figure out which one works and which one doesn't?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tested each of your conditions independently to figure out which one works and which one doesn't?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Taking the example from the Nunjucks documentation
...it looks to me like your test on the Company field is not correct and needs to be
{{ issue.fields[
"Company"
] | find({
"value"
:
"Aviator"
}) !=
null
}}
Disclaimer: I don't have the Nunjucks app on my system. I can't test my suggestions before giving them to you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.