Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to change the owner of a view in Structure?

Hi,

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!

Christian

 

1 answer

Hi Christian,

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. 

Best Regards,

Vlad

Hi Vlad,

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).

Best regards

Christian

private_views.pngpublic_views.png

Hi @Vlad-ALM Works-

is there any news on this?

Best regards

Christian

Hi Christian,

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.

Best Regards,
Vlad

Can we please get a scripts to bulk change the structure owner

Hi Lola, 

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.

Mario O.G
[ALM Works]

Have seen the scripts. Thanks 

Hi @Mario O_G and @Vlad-ALM Works- 

I have a similar scenario where I need to change the owner of a Structure View as they are no longer part of the company. 

I have script runner available if you can provide a snippet of how to do this? 

Marina. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  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...

260 views 2 5
Read article

Community Events

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

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you