how can I change the owner of a view in Structure (not to be confused with the owner of the structure itself)? After migrating from one instance to another some of the views' owners were changed unexpectedly, and I have to switch them back to the original owners.
Any help appreciated, thank you!
Thanks for posting.
Do you know if anything unusual happened during the migration? It would be great if we could find out how that happened in the first place but you'd have to be able to reproduce it, which I understand might not be possible.
Anyhow, this can be done a couple different ways. The easiest way would be to use a script to call the REST API. Do you use the ScriptRunner app by any chance?
I look forward to assisting you.
yes, we have Scriptrunner Plugin in use and I'd be glad if you could advise me or provide a code snippet how to do this.
Regarding the possible reason for the owner change:
I don't have access anymore to the source system the structures were migrated from, so unfortunately I cannot reproduce that exactly. The migration was performed as described in the "Backup Structure" and "Migrate Structure" paths in the documentation and took place between two JIRA instances on different systems. No structures were present on the target before migration.
Common to all owner changes is that Structure replaced the original owner with the user who carries out the migration (maybe the original owner could not be matched on the target instance?). The first screenshot lists some public views on the target instance with owner "olschink", who was logged in and carried out the migration as a JIRA system admin, but did not own any structures, nor was in any project role before migration.
The second screenshot shows another curiosity: A private view named "Tracking" doesn't have an owner at all (although I cannot safely verify that the view did have an owner on the source instance before migration, but I suppose so).
Somehow I missed your updates here. I apologize.
We received your Service Desk request and I sent you a reply but wanted to post here as well. Would you prefer to make the changes as a "bulk" change or do you prefer to be able to go through them somewhat individually?
Once I hear back from you, I will work with our Solutions Engineer to put together a script for you. We should have it ready in a few days.
Are you referring to the script which we shared with Christian, or you're facing a different scenario?
The script mentioned here works by recovering the ownership of the views. It doesn't relate to the ownership of the structures themselves.
If possible, kindly clarify your goal and the issue you're coming across.
It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event