0

I have Fogbugz linked up to Perforce via the PERL script. I can click on a checkin and it currently tries a URL in the following form to jump to a changelist description on P4Web:

http://fogbugz.lw:8080/@md=d&cd=//&c=6fI@/^R2?ac=10

where R2 is the changelist picked up from Fogbugz database.

However, rather than point to P4Web, I would rather point it at Fisheye (part of a Crucible installation). So in the admin control I can change the link so it picks it up, e.g:

http://crucible:8060/changelog/LWNT/?cs=^R2

This works, as long as my project in Fisheye is "LWNT". But in Fisheye I actually have a number of projects, with a 1-2-1 correspondence with the Fogbugz projects (but not the same name, unfortunately).

So, can I modify the URL so it can take in either the project or a string value associated with the project. E.g:

http://crucible:8060/changelog/^R3/?cs=^R2

Where R3 is the project name/associated value.

I could, at at stretch, modify my Fogbugz project names to exactly match the project ID's in Fisheye, but would prefer not to - hence the query about using an associated value rather than the project name directly.

Having done this, I would also like to extend the same logic to the diffs URL.

flag
I've added a bounty to this because I'm desperate for an answer. In the words of space-based royalty: 'Help me Obiwan, you're my only hope'.. – Greg Whitfield Apr 9 2010 at 10:01
Sorry to have kept you waiting on this! – Brett Kiefer Apr 9 2010 at 12:23

1 Answer

2

I think that the simplest way to get this to work (if you don't create new projects too frequently) would be to set up a repository per-Fisheye-project in FogBugz, then have the Perl script choose the ixRepository of the FogBugz repo depending on the Fisheye project that corresponds to the checkin that is firing the trigger. Then you can set the file view URL of the repo to http://crucible:8060/changelog/[Fisheye Project Name]/?cs=^R2, and the diff view in a similar way.

link|flag
Thanks for the tip - I'll have to have a think about the knock on effects of having more than one repository. – Greg Whitfield Apr 9 2010 at 16:57

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.