Rename/Merge From A User ID to a Destination User ID using Groovy Script Issue

assert gvs.size() == 1 | | | | 2 false [[lastName:Goyal, lowerEmailAddress:abc@nectechnologies.in, updatedDate:2013-05-08 15:47:40.0, directoryId:3, emailAddress:abc@nectechnologies.in, credential:{SHA}ybNZlRwJxdBN5PhSdGZxqystCZQ=, id:11310, lowerFirstName:abc, userName:abc, active:1, lowerLastName:goyal, lowerDisplayName:abc, lowerUserName:abc, firstName:abc, displayName:abc, createdDate:2011-09-19 13:29:17.0], [lastName:Goyal, lowerEmailAddress:abc@nechclst.in, updatedDate:2012-01-18 11:33:45.0, directoryId:10000, emailAddress:abc@nechclst.in, credential:nopass, id:13132, lowerFirstName:abc, userName:abc, active:1, lowerLastName:goyal, lowerDisplayName:abc, lowerUserName:abc, firstName:abc, displayName:abc, createdDate:2012-01-18 11:33:45.0]]

2 answers

1 accepted

Then how would be rename a user id to a different user id....

0 vote

Probably won't work if the user already exists in multiple directories.

I would hang on until jira 6, I will remove this script in an upcoming release.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you