Eclipse to Android Studio and FogBugz/Kiln

For a few days I finally migrated from Eclipse to Android Studio.
I had a few tools in Eclipse for Version Control System and Bug Tracking.

Both are from FogBugz.
FogBugz is Bug Tracking and Kiln (also from FogBugz) is a Verison Control System with Mercurial.

In Eclipse there was a “FogBugz Mercurial Integration” for Mercurial.
And for Bug Tracking/Task association there was “FogLyn“. Based on MyLyn Connector.

In Android Studio this two tools are missing.
No Problem at all because Android Studio comes with built in “Mercurial” and “Task association“!

Mercurial Integration with Kiln:

Task Integration with FogBugz:

  • Go to “Settings“, “Tasks“, “Servers
    Tasks Servers
  • Click on the “+” on the right and select “FogBugz
    Tasks Fogbugz
  • Enter the URL to your FogBugz account
    Tasks Url
  • The cases from FogBugz have to be added to the Kiln Changeset and vice versa. This works if in the issue name and id the word “case” is added.
    So change the under “Tasks” the “Changelist name format” to “case {id} {summary}

    Tasks Changeset
    And change the “commit message” in “Tasks“, “Servers“, “Commit Message” to “case {id} {summary}
    Tasks Commit Message
  • If you want to click on the “changeset name” and it should directly go to the case in FogBugz you have to add another setting into “Version Control“, “Issue Navigation
    Tasks Issue Navigation
  • Tap on “+” and add following “Issue ID (regular expression)” and “Issue link (replacement expression)
    In “Issue ID” add [0-9]\d+ and in “Issue Link” add your FogBugz Url and “/f/cases/$0“, for example https://yourname.fogbugz.com/f/cases/$0
    Tasks Issue Navigation Link
  • Now you have a link in the changeset descriptionon to the FogBugz case, see screenshot the link on the number 422
    Tasks Link Changeset

Here is the official IntelliJ docu http://www.jetbrains.com/idea/help/enabling-integration-with-an-issue-tracking-system.html?search=task

Hope this helps somebody in the future because I haven’t found any usefuel about FogBugz/Kiln and “IntelliJ/Android Studio” and have used a few hours to solve this integration.