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

Bulk add git repositories to fisheye?

I can use an HTTP post to load repositories into the git plugin for Jira, but is it possible to do this for Fisheye at all? Or can Fisheye use the repositories already defined in Jira?

It seems to be a real shortcoming of the product suite that I have to manually duplicate all this data.

1 answer

1 accepted

1 vote
Answer accepted

Hi there Mark,

Recent versions of Fisheye have a REST API for adding repositories: https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#d2e227

Depending on your environment, you may also find this plugin useful: https://marketplace.atlassian.com/plugins/com.atlassian.fisheye.repositron

-Richard

Thanks, but the documentation there does not match what the REST API really seems to want. For example, the link shows:

{
  "type" : "git",
  "name" : "myGitRepo",
  "description" : "My GIT repo",
  "storeDiff" : true,
  "enabled" : true,
  "git" : {
    "location" : "git@bitbucket.org:atlassian/fecru-rest-examples.git",
    "auth" : {
      "authType" : "key-generate"
    },
    "blockSize" : 400,
    "commandTimeout" : "1 hour",
    "renameDetection" : "NONE"
  }
}

as the JSON string to use for creating a git repo. That syntax does not work at all. In fact, the following in needed:

{
  "type" : "GIT",
  "name" : "myGitRepo",
  "description" : "My Git Repo",
  "url" : "git@bitbucket.org:atlassian/fecru-rest-examples.git"
}

And then a series of additional calls are needed to enable and start the repository. Where do I find the documentation for what JSON is *really* used by Fisheye?

Hi Mark,

It looks like you are looking at 2 diifferent endpoints.

rest-service-fecru/admin/repositories-v1

rest-service-fecru/admin/repositories

Your first example is valid for rest-service-fecru/admin/repositories, and it looks like you are using rest-service-fecru/admin/repositories-v1

Hope it helps

mac

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

483 views 16 17
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