Change dashboard or filter ownership

I am having trouble. I click the link to initiate the built-in script. I see 
From user ID and To user ID. I fill those in. I see Preview, Run and Cancel buttons. If I click Preview, I see quick swirl, but display doesn't change. If I click Run, I get a Completed message. It has yet to ask me for which dashboards/filters. So I click the Change dashboard or filter ownership again, (sometimes see blank From and To), click Run, and get a list of Dashboard IDs and Filter IDs. I choose one or more, and click Preview. Nothing happens. Click Run. Nothing happens.

What am I doing wrong. I have tried in both Firefox and Chrome. Why don't I see all 4 fields (From, To user, Dashboard IDs and Filter IDs) at once, or together? Why doesn't Run do anything?

3 answers

So, the solution is to run it manually from the script console?

It's not much of a solution, but yes that's possible.

Hi Jamie,

what should I replace the [] with and how do I run this for bulk?

import com.onresolve.scriptrunner.canned.jira.admin.ChangeSharedEntityOwnership

        Map<String, Object> inputs = [
            (ChangeSharedEntityOwnership.FIELD_FROM_USER_ID) : "sourceUserId",
            (ChangeSharedEntityOwnership.FIELD_TO_USER_ID) : "targetUserId",
            (ChangeSharedEntityOwnership.FIELD_DASHBOARD_IDS) : []

        def changeSharedEntityOwnership = new ChangeSharedEntityOwnership()
        assert ! changeSharedEntityOwnership.doValidate(inputs, false).hasAnyErrors()



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 May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

834 views 2 9
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