Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to update User profile programmatically

Stefano De Gaetano
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 3, 2015

Hi all,

in my old JIRA 3.13.5 environment, I have written a routine that update JIRA users' full name with a suffix.

Today I want to update this routine for my new JIRA 6.3.15 environment, but I discovered that I can't update user full name easily as before.

Before, user java class has a "setFullName(...)" method.

Today, I haven't found any way to update this attribute. Only "get" methods.

 

I found this answer, Change user's display name, but the class "com.atlassian.crowd.model.user.UserTemplate" is not found.

 

Anyone has an idea?

Thanks in advance.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Volodymyr Krupach
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 3, 2015

Hi stefanodegaetano!

You need to add crowd-api dependency to your pom.xml:

<dependency>
  <groupId>com.atlassian.crowd</groupId>
  <artifactId>crowd-api</artifactId>
  <version>${crowd.version}</version>
</dependency>

The latest stable version can be checked in atlassian repo: https://maven.atlassian.com/content/groups/public/com/atlassian/crowd/crowd-api/ and looks like it's 2.8.2.

0 votes
Tim Eddelbüttel
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 3, 2015

Take a look at the JIRA Automation Plugin.

TAGS
AUG Leaders

Atlassian Community Events