Forums

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

Use Scriptrunner fragment on user hover link

Patrice Champet
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 12, 2021

Hello,

I am wondering if there is a simple way to get user information when creating a fragment on section system.user.hover.link.

My goal is to create a simple link to open a Teams chat with a link such as:

msteams:/l/chat/0/0?users=$user.email

 Any idea ?

Thanks a lot.

1 answer

0 votes
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2021

I don't use MS Teams ... but I don't think you can open the Teams desktop app.

I found this: https://microsoftteams.uservoice.com/forums/555103-public/suggestions/34501303-open-links-to-teams-in-desktop-app

But with the webitem fragment ... if you want to point to some website with the user's email address, you can add that to your url with users=$user.emailAddress.

Maybe you can try: https://teams.microsoft.com/l/chat/0/0?users=$user.emailAddress

Christian Bär
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2025

Although this is an old entry, it showed up when I was searching for a similar solution. So for those stumbling about it after me:

$user.emailAddress 

evaluates to the email address of the current user, not the profile User. Fortunately, there is the context variable profileUser, which differs from the user object as it is only the username of the profile user.

So to build a link with the profile users email address you can use the userUtils context variable and need to use:

$userutils.getUser($profileUser).getEmailAddress()

 

Suggest an answer

Log in or Sign up to answer