Results 1 to 6 of 6

Thread: Is there a way to easily navigate to a Bug in SugarCRM using a URL string?

  1. #1
    BAA Steve is offline Junior Member
    Join Date
    Apr 2011
    Posts
    3

    Default Is there a way to easily navigate to a Bug in SugarCRM using a URL string?

    Hi,

    I am trying to find a way to integrate TortoiseHg with SugarCRM 6.0.3 (Build 4339) so our development staff can associate Sugar Bugs with their Mercurial/TortoiseHg check ins.

    Most bug tracking systems have a mechanism similar to what Jira provides in the example below to navigate directly to bug JHG-16:

    https://studio.plugins.atlassian.com/browse/JHG-16

    I’ve tried several methods on our local Sugar server to access the bugs, but the closest thing I can come up with is:

    http://mysugarserver/sugarpro/index....er_basic=12345

    But this URL still doesn’t take me to the detail page for bug 12345. The user is required to click on a link referencing bug 12345 and then is re-directed to a page with a long URL similar to the one below:

    http://mysugarserver/sugarpro/index....-xxxxxxxxxxxxx

    Has anyone else run into this problem? If so, how did you solve it?

    Ideally I would like to see something like:

    http://mysugarserver/sugarpro/index....ugNumber=12345

    Thanks in advance,

    Steve

  2. #2
    blak3r's Avatar
    blak3r is offline Sugar Community Member
    Join Date
    Sep 2010
    Location
    Maryland
    Posts
    240

    Default Re: Is there a way to easily navigate to a Bug in SugarCRM using a URL string?

    Hey,

    I never really tried to switch over from Bugzilla. Got busy with other things.
    If you make the plunge, please let me know how it goes!

    ~blake
    Sugar 6 Pro, On-Site (Apache 2.0, MySQL 5.1, PHP 5.2.6)

    My SugarForge Projects:
    Email To Sugar - Archive emails in any mail client by adding a BCC line.
    Task Dashlets Plus- Adds custom dashlets for: tasks assigned to me by others, delegated tasks, overdue tasks, and open tasks past start date

    www.blakerobertson.com

  3. #3
    BAA Steve is offline Junior Member
    Join Date
    Apr 2011
    Posts
    3

    Default Re: Is there a way to easily navigate to a Bug in SugarCRM using a URL string?

    Thanks for replying.

    At this point I'm trying to find a way to hook into either TortoiseHg or Perforce P4V.

    I'm really surprised that no one has done this already. With Git, Mercurial, and Subversion all being open source I would have thought that someone would have encountered this same problem.

    I may yet land up trying to figure out how to make this work, but like you I'm being pulled in about 100 directions.

    Steve

  4. #4
    blak3r's Avatar
    blak3r is offline Sugar Community Member
    Join Date
    Sep 2010
    Location
    Maryland
    Posts
    240

    Default Re: Is there a way to easily navigate to a Bug in SugarCRM using a URL string?

    I think it's a lot of reasons...

    CRM being used by the company as a whole is still kind of at the cutting edge of accepted business practices... It's really only practical for smaller companies to do it right now.
    (I'm sure others will disagree with this and say it's the complete opposite however)

    I too wish more open source projects played with Sugar a little better. I'm seeing positive signs though.

    I just re-glanced at your post. I assumed you were asking a different bug question I had posted. I didn't follow your links don't have time... can you just explain in plain english what your trying to do?
    - would the developers include something in the comments of their commit to reference a sugar account...
    - would developers use Sugar's internal bug tracking?
    Last edited by blak3r; 2011-07-25 at 11:45 PM. Reason: reedited
    Sugar 6 Pro, On-Site (Apache 2.0, MySQL 5.1, PHP 5.2.6)

    My SugarForge Projects:
    Email To Sugar - Archive emails in any mail client by adding a BCC line.
    Task Dashlets Plus- Adds custom dashlets for: tasks assigned to me by others, delegated tasks, overdue tasks, and open tasks past start date

    www.blakerobertson.com

  5. #5
    BAA Steve is offline Junior Member
    Join Date
    Apr 2011
    Posts
    3

    Default Re: Is there a way to easily navigate to a Bug in SugarCRM using a URL string?

    Hi,

    Thanks for taking the time to read and respond to my note.

    The problem I'm trying to solve is fairly straight forward. Most developer tools provide integrations with bug tracking systems by recognizing text a developer types in when writing the description of how they fixed the bug. The developer normally uses the syntax:

    # <bug number> at the start of a line.
    or
    Bug: <number>.

    The bug tracking system recognizes the special syntax and automatically turns this into a hyper link that links the fix in the source control system with the bug in the bug tracking system. Some version control systems take things a step further by providing a field in the check in dialog allowing the developer to enter one or more bugs (some even allow the developer to pick from a list of bugs, but that requires deeper integration).

    In all cases, the version control systems integrate with the bug tracking system using a simple URL based syntax to create the link between the two systems. The URL must look something like:

    http://location_of_your_bug_control_...arameter=nnnnn

    Where nnnn is the way to link to the bug. This forum software keeps truncating the URL. Hover over the URL to read the text.

    Therefore I would like to find some mechanism that allows me to directly access a particular bug in the Bug Tracker module using a single URL line in a format listed above. The closest I've come is to cause SugarCRM to display a page listing all modules that contain the number nnnnn. The developer must then manually click on the link to get to the bug. The SugarCRM page that comes up always appears even if there is only one choice.

    Thanks again for taking the time to review my bug.

    Steve
    Last edited by BAA Steve; 2011-07-26 at 11:29 AM. Reason: Tried removing the URL so the text would fully appear in my message

  6. #6
    blak3r's Avatar
    blak3r is offline Sugar Community Member
    Join Date
    Sep 2010
    Location
    Maryland
    Posts
    240

    Default Re: Is there a way to easily navigate to a Bug in SugarCRM using a URL string?

    Here's where i'm getting confused...
    It sounds to me like you're trying to create the link in your version control system which is odd to me... I would think you'd want the link in the bug tracker linking to the commit notes in the version control system.

    As I understand these systems to work..
    User commits... This triggers some type of post commit trigger which finds patterns such as Bug:###.
    If any are found, it connect to the Bug Tracking application and add a comment.

    You could create something like that fairly easily with a simple webservice script.
    Sugar 6 Pro, On-Site (Apache 2.0, MySQL 5.1, PHP 5.2.6)

    My SugarForge Projects:
    Email To Sugar - Archive emails in any mail client by adding a BCC line.
    Task Dashlets Plus- Adds custom dashlets for: tasks assigned to me by others, delegated tasks, overdue tasks, and open tasks past start date

    www.blakerobertson.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP MB string error on SugarCRM 5.5.1
    By donsuplado in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2010-05-17, 01:02 AM
  2. SugarCRM connection string
    By limj1005 in forum Developer Help
    Replies: 0
    Last Post: 2010-03-16, 03:34 AM
  3. How can I programmatically navigate through sugarcrm
    By crmarkus in forum Developer Help
    Replies: 0
    Last Post: 2008-05-18, 06:18 PM
  4. SugarCRM MB String error
    By clint in forum Help
    Replies: 1
    Last Post: 2006-10-09, 05:49 PM
  5. Easily Customizing SugarCRM
    By malcolmh in forum Feature Requests
    Replies: 28
    Last Post: 2005-10-28, 07:48 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •