Is there a groovier way of writing thiscode?
if(Id.getIssueType().getName() == "Initiative" && issue_status != "Closed" && issue_status != "Resolved" && issue_status != "On Hold" && issue_status != "Blocked" && checkNumberofIssueLink > 0) {
I tried writing it like the below but it's not getting the desired result (e.i, it's pulling issue that are either Block or Resolved or Closed.
if(d.getIssueType().getName() == "Initiative" && issue_status !=(['Closed' && 'Resolved' && 'On Hold' && 'Blocked']) && checkNumberofIssueLink > 0) {
You can try the code below.
if(d.getIssueType().getName() == "Initiative" && issue_status NOT IN ('Closed', 'Resolved', 'On Hold', 'Blocked') && checkNumberofIssueLink > 0) {
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.