How to copy Job Templates along with a Project?

Hi,

I have a project, My-Project-A, which has its “Source Control Branch” set to feature-branch-001. I also have 48 “Job Templates” and “Workflow Job Templates” that have their “Project” set to “My-Project-A”. I created a new branch, feature-branch-001-hotfix, and I used the AWX UI to copy My-Project-A to a new project I named My-Project-B.

Is there a quick way I can copy the 48 Job Templates and Workflow Job Templates that have their project be set to My-Project-B? Or do I have to do this manually via the Web UI?

Thanks

There is away to prompt for the project branch when launching the job or workflow. This might be better than making copies of Job Templates each time you want to run with a new feature branch. Just enable “allow branch override” on your project, then enable the “prompt on launch” on your Job Template source control branch field.

And in general, if you are doing bulk operations, you can always use the awx.awx collection and write a simple playbook to modified AWX resources.

AWX Team