Forums

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

Query Regarding Conditional Statements in Jira Automation Rules

Björn Trier January 23, 2024

 

Hello Jira community,

To be blunt i dont want to discuss if thats the best approach - its a hellish thirdparty migration topic i just want to get done with. 

I have recently encountered an interesting behavior in my Jira Automation rules, and I was hoping to seek your insights on the matter.

Here is the snippet of the code in question from my automation to make more clear what i have a problem with:

 

Other Information Contains Winline:{{issue.customfield_12028.value.join(",").remove("[").remove("]").replace(", ",",").split(",").lastIndexOf("Winline Zugang / Winline Access").gt(-1)}}

Other Information Contains Git:{{issue.customfield_12028.value.join(",").remove("[").remove("]").replace(", ",",").split(",").lastIndexOf("Git").gt(-1)}}

Issue Description is not empty:{{not(issue.description.isEmpty)}}

Is Value of "Issue Description is not empty" same as "Other Information Contains Winline": {{equals(issue.customfield_12028.value.join(",").remove("[").remove("]").replace(", ",",").split(",").lastIndexOf("Winline Zugang / Winline Access").gt(-1), not(issue.description.isEmpty))}}
 

Upon evaluating the Smartvalues, I observed the following results:

  • Other Information Contains Winline: true
  • Other Information Contains Git: false
  • Issue Description is not empty: true
  • Is Value of "Issue Description is not empty" same as "Other Information Contains Winline": false

I'm curious to understand if anyone else has encountered similar behavior and if there are any suggestions or insights into why the last comparison might be evaluating to false since it compares true to true

Looking forward to your thoughts and experiences!

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events