From a Crucible Review Comment, can I reference a changeset?

Is there a wiki markup syntax that I could use within a comment in a review, for example "This error was fixed in changeset ref:9583234" where the ref: becomes a link to fisheye (or..something) showing that change set?

thanks!

3 answers

1 accepted

2 votes
Nick Pellow Atlassian Team Sep 29, 2013

This is not supported out of the box with Crucible, however you can achieve the same by configuring a custom Linker https://confluence.atlassian.com/display/FISHEYE/Linkers .

You can add a linker at the repository defaults section, with the following definition for Git/Hg repositories:

Regular Expression:

#([0-9a-f]{5,40})\b

Href:

https://YOURFISHEYEURL/qsearch?t=1&s=2&q=${1}

Then, if you reference a SHA256 hash in any Crucible comment, it will be hyperlinked off to that changeset in FishEye.

For SVN, CVS or Perforce, you would need to adjust the RegEx above to match those CSIDs instead!

NB: You can have multiple linkers, so if you have a mixture of repo types, all this should still work fine.

Awesome, thank you! I can get the link to show up in the review comment, and the query page shows up with the right change ID, but the search found no results - is there something else needed to tie this into P4?

0 vote
Nick Pellow Atlassian Team Sep 30, 2013

@Tony Rasa - can you confirm that FishEye has indexed the changeset you've linked to? The search should show it if its been indexed ? Maybe attach a screenshot of your empty search result page?

Yes, it appears to have been indexed, at least I have tested with changesets that have other crucible reviews created for them anyhow.

trying to link screenshot: screenshot

0 vote
Nick Pellow Atlassian Team Sep 30, 2013

Ah ha! It seems you only have a Crucible license. Viewing and sarching for changesets is a feature of FishEye. You can obtain a 30 day eval for free via: https://my.atlassian.com/

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted yesterday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

96 views 3 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you