ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Building a Bug Tracker: Creating a List of Reported Bugs

March 13, 2008 9:34pm

Subscribe [2]
  • #1 / Mar 13, 2008 9:34pm

    Lisa Wess

    20502 posts

    The main functionality of the Bug Tracker is managing bug reports.  The way that we’re handling this means that each entry in the Bug Tracker weblog is an actual bug report.

    Now that we have the templates setup, the next step is to output a basic list of entries.  It’s time to begin working with the data that we’ve previously entered.

    Onwards!

  • #2 / Mar 19, 2008 8:34pm

    ramonekalsaw

    377 posts

    Lisa,

    Very cool. I got to where you’ve taken us to this point in the tutorial ... and ... with a sad feeling from having to break off from the EE-momentum I built up ... I was wondering if your ultimate objective with this tutorial is for us to have the same bug tracker functionality as the EE one at http://expressionengine.com/bug_tracker/.

    As I mentioned to you before, this type of tutorial is great because it gives essential insights into the methods of EE, and winds up with an important tool to use going forward.

    Thanks again for this important work you’re offering ... and I look forward to the next installments of Bug Tracker!

    Ramone

  • #3 / Mar 19, 2008 8:36pm

    Lisa Wess

    20502 posts

    Hi, Ramone,

    My intention here is to highlight a way that you can run a bug tracker, and some neat ways to manipulate that data.  Some of this will mirror what is in or Bug Tracker for ExpressionEngine, and some may be different. 

    The idea is that ultimately, you can take these methods and use them on your own sites, for your own applications.  =)

  • #4 / Mar 20, 2008 6:31pm

    ramonekalsaw

    377 posts

    That is the beginning, and from here, we can manipulate our entry list in a variety of interesting ways, as we’ll see in the upcoming articles.

    Lisa, do you have a sense of when you’ll be releasing additional lessons of this tutorial? I don’t mean to pester, but I’m beginning an EE project that would benefit hugely from having a functional bug tracker. And if this tutorial is a lower priority and not slated for further development for a while, I’ll just use something like iCal’s ‘To Do list’ in the meantime.

    Thanks.

  • #5 / Mar 20, 2008 7:04pm

    Lisa Wess

    20502 posts

    Usually Thursday afternoon/evening.

  • #6 / Jan 14, 2009 8:20pm

    los1sol

    41 posts

    Hey Lisa, I was wondering if you could help me out a little. I tried to create a bus detail page that would be accessed via some of the templates in the tutorial. But I’m having trouble passing on the {entry_id} variable needed from my bug_tracker/index template over to my newly-created bug_tracker/bug_detail template.

    Here is the code that I’m using from my bug_tracker/index page (which I’m sure is missing something really simple but ultimately lost on me):

    {exp:weblog:entries weblog="{bug_tracker_weblog}" limit="30" status="Open|New|Closed|Fixed"}
    {if count == "1"}
    <table>
    <tr>
    <th>ID</th>
    <th>Status</th>
    <th>Version</th>
    <th>Description</th>
    </tr>
    {/if}
    <tr>
    <td><a href="http://{path=bug_tracker/bug_detail}">{entry_id}</a></td>
    <td>{status}</td>
    <td>{bug_tracker_version}</td>
    <td>{bug_tracker_details}</td>
    </tr>
    {if count == total_results}
    </table>
    {/if}
    {/exp:weblog:entries}

    And here is my receiving template (bug_tracker/bug_detail) code:

    {html_begin}
    {embed="inc/.head" title="Bug Tracker"}
    <body>
    <div id="container">
    {embed="inc/.banner"}
    {embed="inc/.leftnav"}
    <div id="content">
    
    {exp:weblog:entries weblog="{bug_tracker_weblog}" limit="1" status="Open|New|Closed|Fixed"}
    <h2>{title}</h2>
    <p><strong>ID:</strong> {entry_id}</p>
    
    <p><strong>Reported By:</strong> {screen_name}</p>
    
    <p><strong>Status:</strong> {status}</p>
    
    <p><strong>Version:</strong> {bug_tracker_version}</p>
    
    <p><strong>Severity:</strong> {bug_tracker_severity}</p>
    
    <p><strong>Assigned To:</strong> {bug_tracker_assignment}</p>
    
    <p><strong>Bug Description:</strong><br />
    {bug_tracker_details}<br />
    {/exp:weblog:entries}</p>
    
    <p><br />
    </div><br />
    {embed="inc/.footer"}<br />
    </div></p>
    
    <p>{html_end}

    I’m guessing the solution is something very simple but I’ve looked in the documentation and can’t wrap my head around what it could be. Can you please help?

  • #7 / Jan 14, 2009 8:30pm

    Lisa Wess

    20502 posts

    Have you tried using the permalink= variable for the weblog entries tag?  That’ll pass the ID with the template group and template you tell it to.

  • #8 / Jan 15, 2009 2:01am

    los1sol

    41 posts

    I had not tried that. Took me a while to figure out how to implement it but eventually I did. Thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases