Change dashboard or filter ownership

Carlos Fernandez June 8, 2015

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

1 vote
JamieA
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.
June 8, 2015
0 votes
Kesava Bharathi Mahalingam December 2, 2015

Hi Jamie,

what should I replace the [page.id] 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) : [page.id]
        ]

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

Thanks,

Kesava.

0 votes
Carlos Fernandez June 8, 2015

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

JamieA
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.
June 8, 2015

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

Carlos Fernandez June 8, 2015

Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events