I've been trying to evaluate if the current ticket has any values in the issue.issuelinks field and just can't seem to get it to evaluate to True. I've tried:
If I add {{issue.issuelinks.outwardIssue.key}} directly into my email template it prints the two linked issues keys. As a work around I put the {{issue.issuelinks.outwardIssue.key}} value in a variable and then evaluated to see if that variable was empty and it works. I was just hoping to have a more direct way.
Thanks for the assistance.
Hi @Tom Scoggin
Checking for empty (or blank) fields within rules is challenging and depends upon both the field type...and for some fields whether or not they ever had a value (and were later cleared).
For a list field such as {{issue.issuelinks}} please try using the size function with a condition on the math function gt() for greater than 0:
{{#if(issue.issuelinks.size.gt(0))}}there are links!{{/}}
Kind regards,
Bill
Thanks Bill. I was able to use it for Labels and Components as well.
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.