A very, very basic version of this was implemented on the homepage in commit eeb3c63 (
View Commit)
The aim is to use the script to populate some static HTML pages on project.bentasker.co.uk, but only certain projects should be eligible for display.
The commit above introduce the concept of a comma-seperated header allowing filtering by project key, this needs to be expanded so that the filter is taken into account on every page (the script needs to return a 404 if the filter prevents an issue/version from being displayed)
The header used is
X-PROJECT-LIMIT: JILS,GPXIN
Activity
2014-11-03 12:20:58
2014-11-03 12:22:54
The best way forward is probably to add a function to utils.class which checks for the header and builds the filter if needed.
2014-11-03 12:31:02
The function buildProjectFilter() returns false if there is no filter to build, and it's down to the calling entity whether the generated SQL needs to be prefixed with WHERE or AND
2014-11-03 12:36:33
Webhook User-Agent
View Commit
2014-11-03 12:36:33
Webhook User-Agent
View Commit
2014-11-03 12:36:34
Webhook User-Agent
View Commit
2014-11-03 12:37:03
2014-11-03 12:54:12
2014-11-03 12:54:33
Webhook User-Agent
View Commit
2014-11-03 13:05:26
It correctly retrieves only issues for the specified project. However, where links to issues in other projects exist, the link continues to point at the jiralist source, so may need to think of and create an amendment to prevent that
2014-11-03 13:20:20
2014-11-03 13:22:33
Webhook User-Agent
View Commit
2014-11-04 00:23:42
2014-11-04 00:23:42
2014-11-04 00:23:42
2014-11-04 00:23:46
2016-04-29 14:54:00
2016-04-29 14:54:00
2016-04-29 14:54:00
2016-04-29 14:55:21
2016-04-29 14:55:21
2016-04-29 14:55:21
2016-04-29 15:00:58
2016-04-29 15:00:58
2016-04-29 15:00:58
2016-04-29 15:01:01