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

Moving Plan Y from Project Y to Project X fails!

Kamran Alipoursimakani September 16, 2024

Hi there!

We're currently using Bamboo 7.1.2 and need to move some plans between projects due to changes in ownership and for cleanup purposes.

When we attempt to move a newly created plan, Plan Y (key: PLANY), from a freshly created Project Y (key: PY) — which contains only a single shell script task in its default job to list the contents of the working directory (this task runs successfully) — to another newly created and completely empty Project X (key: PX), it fails with the error: "String [PX-JOB1] is not a job key."

Does anyone have any tips or suggestions for us? 😊

1 answer

0 votes
Shashank Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 16, 2024

Hello Kamran,

Welcome to Atlassian community

Looking at the key PX-JOB1 for the job, it seems wrong, it should be projectkey-plankey-jobkey.

I did a quick test in Bamboo 9 with the above scenario and I don't see the error, Can you try to open the Job from the moved plan and check what is the Job key it will be displayed in the browser.

Also do validate if you have followed the steps from https://confluence.atlassian.com/bamboo/moving-plans-to-a-different-project-289277189.html

Regards,

**please don't forget to Accept the answer if your query was answered**

Kamran Alipoursimakani September 17, 2024

Hi Shashank 🙂

Thanks for quick reply!

Here is what I get in the browser address bar when I go to the Default Job inside Plan Y belonging to Project Y

.../build/admin/edit/editBuildTasks.action?buildKey=PY-PLANY-JOB1

But when trying to move the plan, it seems to be dropping the plan ID 🤔

Shashank Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2024

Hi Kamran,

This is the original scenario when the Default Job is under Plan Y and Project Y

Can you confirm what is the Job key when this is moved to Project PX.

If your project does not contain any sensitive info can you share the YAML Specification after the plan is moved to Project PX, this will clear all the doubts, refer YAML specification  for more details on how to do this.

Regards,

Shashank Kumar

Like Steffen Opel _Utoolity_ likes this
Kamran Alipoursimakani September 17, 2024

Screenshot 2024-09-17 at 10.41.18.png

That's the problem, I can not move it at all, it fails when I click the Move button with the error message you see in the screenshot which is referring to a wrong job key which doesn't have the Plan ID in it! 😐

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events