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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,140
Community Members
 
Community Events
176
Community Groups

Give first-time users a message box.

Edited

I am trying to guide new users to the Altassian tutorials for beginners when they login for the first time. I am aware there is a plugin put out by Atlassian, however I cannot utilize it due to network limitations (it needs to reach out to external IP addresses).

I was trying to utilize Scriptrunner to this end as there is a LoginEvent for a listener to pick up. Here is the code I have, it is currently set to trigger at every logon for testing purposes.

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.security.login.LoginManager
import com.atlassian.jira.event.user.LoginEvent
import com.onresolve.scriptrunner.runner.util.UserMessageUtil

def userManager = ComponentAccessor.getUserManager()
def loginManager = ComponentAccessor.getComponent(LoginManager)

def loginEvent = event as LoginEvent
def user = loginEvent.getUser()
def data = loginManager.getLoginInfo(user.getName())

def lastLogin = data.getLastLoginTime()
def loginCount = data.getLoginCount()

if(loginEvent)
    UserMessageUtil.info('Welcome to Jira!\nFor new users, we recommend you checkout this brief tutorial on Jira.')

return "Complete"
However, while the listener does pick up and run on a login, no message box is shown. Is there any documentation on UserMessageUtil for its functionality or limitations? I haven't found end.

1 answer

0 votes

Hi,

 

Although I can't help with your Scriptrunner questions, maybe this app might help you. It allows you to create a pop up message that only shows once.

https://marketplace.atlassian.com/apps/1218962/gdpr-dsgvo-and-security-for-jira?hosting=cloud&tab=overview

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events