Victor Boctor's Blog

.NET, FxCop, PHP, Mantis Bugtracker, and more

Projects

Search Now:
Amazon Logo
Google
futureware.biz
mantisbt.org
Web

Categories

Archives

Syndicate this blog


Listed on BlogShares



Misc

03/06/05

Permalink 02:46:31 am, Categories: Mantis, 378 words   English (AU)

RSS Feeds in Mantis 1.0.0a3

In addition to the RSS support in Mantis 1.0.0a2, there has been several bug fixes related to broken RSS feeds that are caused by certain data sets. Also there has been a couple of new features including RSS feeds that are sorted by submit date, and RSS feeds that are based on filters. This post will explain how the new features can be used.

[More:]

Following are some example URLs that should clarify the parameters that are expected on the URL and how they affect the feed contents:

The best way to get the link for a specific project/filter combination is to do the following:

  • Create the filter
  • Make sure it is public and is applicable to the project you want to use it with.
  • Make sure that the anonymous user has access to the filter.
  • Select the project you want the filter to work on, or select "All Projects" if you want it to work on all projects.
  • Go to the View Issues page.
  • Select "Manage Filters".
  • Right click on the "RSS" icon next to the filter you want to subscribe to, and select "Copy Link Location".
  • Select "Add Feed" in your RSS reader or aggregator and paste the link from the clipboard.

In the case where you are not using filter based feeds and you want to subscribe to issues related to a certain project, you can get the project id as follows:

Comments:

Comment from: Klok [Visitor] · http://www.mcb.dk
[Quote]
Right click on the "RSS" icon next to the filter you want to subscribe to, and select "Copy Link Location".
[/Quote]

I dont have this link, and im using the latest version. Do I need to activate this somhow?

By the way: Thank you for a great product :)
Permalink 23/06/05 @ 22:51
Comment from: vboctor [Member]
Klok, are you sure you are using Mantis 1.0.0a3? You should be able to find the word "print_rss" in query_view_page.php.
Permalink 24/06/05 @ 22:54
Comment from: Klok [Visitor] · http://www.mcb.dk
Ahhh :D Found it on the query_view_page.php page, by pasting this in my address bar.

But now i get "Access Denied." error, but im logged in as administrator :( Any help for that one?
Permalink 27/06/05 @ 04:34
Comment from: D'Arcy Norman [Visitor] · http://www.darcynorman.net
I just tried setting up a filter for use in RSS subscriptions, and followed the instructions you gave here. Now, when I select the RSS feed, I get this error message:

APPLICATION WARNING #user_get_field() for NO_USER:

Access Denied.

[ Click here to proceed ]


I set the filter to be specific to a project, but to be "public".

Any ideas?
Permalink 01/08/05 @ 10:40
Comment from: D'Arcy Norman [Visitor] · http://www.darcynorman.net
Almost forgot - this was with a clean install of 1.0.0rc1, with the database upgraded from 0.19.2
Permalink 01/08/05 @ 10:45
Comment from: D'Arcy Norman [Visitor] · http://www.darcynorman.net
If I just view "issues_rss.php" - I get what looks like it's trying really hard to be RSS, but there are some error dumps at the top of the file that bork the RSS.

APPLICATION WARNING #user_get_field() for NO_USER:

(repeated 18 times)

SYSTEM WARNING: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/mantis/core/error_api.php:144)

Then, the RSS file begins as expected, for all projects.
Permalink 01/08/05 @ 10:51
Comment from: D\'Arcy Norman [Visitor] · http://www.darcynorman.net
Ahah! Fixed! I hadn't set the $g_anonymous_account variable in config_inc.php

I just set that to "anonymous", and created a new user with username "anonymous" and "viewer" rights.

Now it works like a charm!

Sorry for the comment noise. Might be worth mentioning in the docs, though...
Permalink 01/08/05 @ 10:57

Comments are closed for this post.