Forums

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

user profile information using script runner

Noora Salman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 8, 2021

Using Adaptavist ScriptRunner for JIRA can I create a user profile or do I need add ons?

Information I would like to see in a profile are more details about the user.

2 answers

0 votes
Juan José Marchal Gómez
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.
September 8, 2021

Hello @Noora Salman 

 

what means "more details"?

 

 

You can use:

 

import com.atlassian.jira.component.ComponentAccessor
def userManager = ComponentAccessor.getUserManager()
def user = userManager.getUserByName("xxx")

and you have details like, displayname...email... about the user inside the variable user

 

Best regards!

0 votes
Elifcan Cakmak
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.
September 8, 2021

Hello

You can create users with scriptrunner using Jira API. Check out this documentation:

https://docs.atlassian.com/software/jira/docs/api/8.19.0/index.html?com/atlassian/jira/user/util/UserManager.html

Regards,

Elifcan

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events