I want to show a web panel with Scriptrunner only to not logged in users and can't find the right condition for this. What I've tried:
if (url.contains('login'))— works, but is too simple: it doesn't match login forms on the primary dashboard page.
import com.atlassian.jira.component.ComponentAccessor
[…]if (currentUser.key == null)
— doesn't work, never seems to be null. Any ideas?
Thanks in avance,
Andreas