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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,254 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot