Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Search code for keywords to trigger Crucible review

Let's say we have a small team who oversees usage of iOS UIWebView controllers. Is there some way Crucible can automatically trigger a review whenever a Perforce changelist has been committed that matches any of the following criteria:

  • A new source code file has been checked in that contains a line with the word "WebView" on it
  • An existing source code file has had a change to a line that contains the keyword "WebView"

Or, is there some way the small team can periodically inspect all recent Perforce commits in a given repository for such changes?

In that fashion, it makes it very easy for the small team responsible for UIWebView usage to keep on top of the code and ensure things are being used according to established best practices without having to look at every single checkin.

2 answers

1 accepted

0 votes
Answer accepted

You can use Advanced Search feature in Fisheye for this -- search for "WebView" in "Added Text" within the repository and then save the permanent link to that query (the "Link to this search" link).

Thanks, this should work out well!

Have you tried the Smart Commit feature? By adding special keywords to your check-in comments, you can trigger Crucible actions.

For instance, the following comment will create a new review in project "REVIEWProject" that contains all files checked in with this commit

- Updated to fix a bug, +review REVIEWProject

Thanks for the input. I've found that with Smart Commit, some people have a hard time remembering to whom (or to which project) to assign reviews. So there are always some checkins floating around that should have been reviewed by 'UIWebView Owners' team (per my original example), but which are not. This is why I was looking for a proactive search feature, so 'UIWebView Owners' can do a search to catch these orphaned checkins. Combining these two approaches should give very good results.

Suggest an answer

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

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

67 views 0 0
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