Hello!
I am trying to setup a conditional execution on a post-function based on a field NOT containing a certain phrase. I have figured out how to do the opposite of what I want - typical! This is shown below:
{{ issue.fields.customfield_10227.includes("Resolution Summary:") }}
Is there a way I can get the post-function to fire if the result value is false? Or make a change in the above template so that it will fire if the phrase is not present?
So far, I have tried using .!includes / .includes(!("Resolution Summary:")) and basically anywhere else I can put an exclamation mark.
I'm pretty fresh in the world of Jira & JMWE - so I appreciate any help I can get!
Kind Regards,
Ste
Hi @Stephen Dyball ,
you can do this:
{{ not issue.fields.customfield_10227.includes("Resolution Summary:") }}
Be aware, though, that this comparison is case-sensitive. If you want a case-insensitive comparison, you can do:
{{ not issue.fields.customfield_10227.toLowerCase().includes("resolution summary:") }}
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.