Building a Bug Tracker: Creating a List of Reported Bugs
Posted: 13 March 2008 07:34 PM   [ Ignore ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26058
Joined  05-14-2004

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!

 Signature 
Profile
MSG
 
 
Posted: 19 March 2008 06:34 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  600
Joined  05-14-2004

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

 Signature 

When you persevere in something in which you have a natural aptitude, the result is excellence. When you persevere in something that does not come naturally, the result is success.

Profile
 
 
Posted: 19 March 2008 06:36 PM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26058
Joined  05-14-2004

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.  =)

 Signature 
Profile
MSG
 
 
Posted: 20 March 2008 04:31 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  600
Joined  05-14-2004

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.

 Signature 

When you persevere in something in which you have a natural aptitude, the result is excellence. When you persevere in something that does not come naturally, the result is success.

Profile
 
 
Posted: 20 March 2008 05:04 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26058
Joined  05-14-2004

Usually Thursday afternoon/evening.

 Signature 
Profile
MSG
 
 
Posted: 14 January 2009 07:20 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Rank
Total Posts:  51
Joined  03-28-2007

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="{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>
<
strong>ID:</strong{entry_id}<br />
<
strong>Reported By:</strong{screen_name}<br />
<
strong>Status:</strong{status}<br />
<
strong>Version:</strong{bug_tracker_version}<br />
<
strong>Severity:</strong{bug_tracker_severity}<br />
<
strong>Assigned To:</strong{bug_tracker_assignment}<br />
<
strong>Bug Description:</strong>
{bug_tracker_details}
{
/exp:weblog:entries}


</div>
{embed="inc/.footer"}
</div>

{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?

Profile
 
 
Posted: 14 January 2009 07:30 PM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26058
Joined  05-14-2004

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.

 Signature 
Profile
MSG
 
 
Posted: 15 January 2009 01:01 AM   [ Ignore ]   [ # 7 ]  
Grad Student
Rank
Total Posts:  51
Joined  03-28-2007

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

Profile