ScriptRunner can't change dashboard owner for inactive user?

We have a user that left the company.  They are owner of 70+ filters/dashboards.  I just purchased a license for the latest version (4.1.3.15 ) of ScriptRunner since the old free version has a bug with changing ownership.  I tested out the script and it worked fine for two active users.  However, for the user that left the company, they are inactive (and we use Active Directory for logins, so I don't have control over that).  When I use his email address for the "From" id and an active user for the "To" Id, the Dashboard and Filter IDs never populate.

Any thoughts or workaround for this scenario?

1 answer

This widget could not be displayed.

So, this is actually a side effect of the fact that the user picker field can't display inactive users.

Since the "From" and "To" fields are actually user picker fields, they won't work if a proper user isn't returned from JIRA's built-in user picker REST endpoint.

One temporary workaround might be to call the built-in script via REST, though you'd have to know the IDs and such of the Dashboards.

Since this is a big use case for the change ownership feature, I'm going to see if we can't raise this as a bug for future development.

I've been running into this of late. Wish you could just type the user name instead of using the picker. Although if REST can do it then that probably works. 

Thanks for the tip! 

Nice, voted and watched that on Adaptavist support... 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

128 views 2 0
Join discussion

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