Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

JMWE - Conditional Execution - run if field does not include a phrase

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

1 answer

1 accepted

1 vote
Answer accepted
David Fischer _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 01, 2023

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:") }} 

@David Fischer _Appfire_ Thank you so much for this - Works perfectly!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events