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

Is there an API functionality to add multiple repositories for a single crucible project?

I am following this link https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html?_ga=2.13037943.1370558991.1533198826-1414676974.1529507422 to automate crucible project creation. Wandering if there an API functionality to add multiple repositories for a single crucible project?

Help appreciated :) 

 

Thanks in advance.

1 answer

1 accepted

1 vote
Answer accepted
Themis Atlassian Team Aug 17, 2018

Hi Dinesh,

reposting my response here, so it can help more users!

=============================================

At the moment there is no (supported) way of adding multiple repositories to a Crucible project via UI or API.

However, we do have a feature request (from UI so maybe not entirely in line with your use case) and a possible workaround from one of our developers, to do so via a POST.

Feature request

The feature request concerns adding in bulk through the UI: CRUC-6269: Bulk add repositories into Project.

 

Possible workaround

In the feature request comments, one of our developers offered the following workaround:

 

A request with the following parameters worked for me:

Method:

POST

URL:

https://<fisheye>/admin/addPathToFisheyeProject.do

Headers:

Accept: /
Content-Type: application/x-www-form-urlencoded
Cookie: <copy cookie from a logged-in admin session from a web browser>

Body: (form data www-url-form-encoded)

rep=<repository-name>
wholeRep=<true/false>
path=<path if wholeRep is false>
id=<project id, you can find it in 'id=NN' parameter in the URL when you edit a project>
atl_token=<copy the token from a web browser session after you add a repo to a project>

We hope this helps you achieve your goals!

Best,

Themis

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

215 views 4 9
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