Project created with ScriptRunner "Copy project" built in script can't be found

I used the "Copy project" built in script to create a new project with key WREG. After the script completed successfully, I tried to access from the project list generated via project via Project->View all projects. When I clicked on the project name I got the error: "The project or issue you are trying to view does not exist. Try browsing for projects." I've used the Copy project script many times with no problems.


I'd appreciate any help with this issue.

3 answers

I don't know if this is helpful or not as you're using a built in function, but this is something where I was having similar issues.

Try doing ComponentAccessor.getProjectManager().refresh() before and after creating a project.  I was having problems creating projects with ScriptRunner using a custom script.  I ended up refreshing the project cache before running projectManager.createProject and after.  

So far so good on my side.

0 votes

What version of the plugin is it? Did you upgrade recently? Do you have browse permission on the source (and therefore the target) project?

This has happened to me before on a couple of occasions.  Then if you try to delete it, it also says it doesn't exist.  Essentially, it does exist, but the project cache needs to be cleared somehow.  Try adding a space to another project's name, or something that might trigger this cache to be flushed.  

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

2,965 views 12 18
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