You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.