MantisBT

View Issue Details Jump to Notes ] Wiki ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006479mantisbtfeaturepublic2005-12-09 04:362013-04-06 09:23
Reporterelmuerte 
Assigned Todregad 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.0.0rc3 
Target Version1.2.12Fixed in Version1.2.12 
Summary0006479: Direct project link
DescriptionWe have a couple of projects in our BT. It would be great if it was possible to create a link that preselects a project for certain pages.

For example, the followig link would directly show all issues for project 1, even though the user previously switched to an other project
  http://my.site/mantis/view_all_bug_page.php?projectid=1 [^]

And for example this link would directly show the "report issue" page for project 2
  http://my.site/mantis/bug_report_page.php?projectid=2 [^]
Tags2.0.x check
Attached Filesdiff file icon mantisBT#6479-direct-access-to-project-for-report-and-view-bug-list.diff [^] (2,203 bytes) 2012-08-08 10:44 [Show Content]

- Relationships
related to 0015721new Functionality to consider porting to master-2.0.x 

-  Notes
User avatar (0013802)
ape (reporter)
2006-12-11 13:06

If I understand your request correctly, you can achieve this using a URL like this:

http://your.site/mantis/set_project.php?project_id=2&make_default=no&ref=bug_report_page.php [^]

I use this to create handy 'report a bug' links in some of my software. You can change the 'ref' parameter to any Mantis page you like.
User avatar (0013806)
vboctor (administrator)
2006-12-12 02:30

You can also use the following link to go to a specific project page. At the moment this pre-selects the project and redirects to View Issues page. In future version, the project page may display some information about the project and provide some links / buttons for possible actions.

http://www.example.com/mantis/project_page.php?project_id=1 [^]

To go to the report page, you will have to use the link suggested by ape.
User avatar (0014351)
vboctor (administrator)
2007-04-16 02:26

We should allow passing the project_id GET parameter to the bug_report_page.php and bug_report_advanced_page.php to simplify the construction of links that report bugs for specific projects.
User avatar (0014419)
ape (reporter)
2007-05-02 13:50

bug_report_page.php and bug_report_advanced_page.php supporting the project_id GET parameter would definitely make life simpler.

This bug could then be resolved with a similar fix to bug 0007667 (although for me the TinyURL feature is unnecessary--maybe it could be optional for those that don't like to see long complex links?)
User avatar (0032509)
Lapinkiller (reporter)
2012-08-08 10:46

patch based on 1.28, using "project_id" GET parameter
User avatar (0032511)
dregad (developer)
2012-08-08 11:29

Thanks for your contribution LapinKiller - I'll have a look at this later this week if I can.

If you can, please consider submitting your contributions as git patches, or even better github pull requests, to make our lives easier.
User avatar (0032514)
Lapinkiller (reporter)
2012-08-08 13:09

sorry but git & and github are blocked at office i can't use git or github,
else, do you know how to do git patch without git ? ^^
User avatar (0032521)
dregad (developer)
2012-08-09 03:08

They don't even let you install a local git client ? damn.
The network nazis here also blocked github a few weeks ago, but I managed to get an exception to bypass the policy as it was a business requirement for support of our internal Mantis ;-)

Don't worry I can live with unified diff - it's just a bit extra work.
User avatar (0032525)
Lapinkiller (reporter)
2012-08-09 05:46
edited on: 2012-08-10 03:38

i'm trying to get an exception too, but i'm in a very big company (more than 200 000 employees), so it's not easy to get this exception :(

for the client install i have a VM with admin rights (on my computer i can't do nothing...)

User avatar (0032546)
Lapinkiller (reporter)
2012-08-13 02:54

github is now working at office :D

i have made a pull request (my first one), i hope it's ok.
User avatar (0032548)
dregad (developer)
2012-08-13 04:27

> github is now working at office :D

good to hear :)

> i have made a pull request (my first one), i hope it's ok.

I'll review it and let you know.
Thanks for your contribution !
User avatar (0032550)
dregad (developer)
2012-08-13 09:17

Salut Lapin

See my comments on your pull request
https://github.com/mantisbt/mantisbt/pull/57#issuecomment-7691307 [^]
User avatar (0036186)
grangeway (developer)
2013-04-05 17:56

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

- Related Changesets
MantisBT: master-1.2.x edfbecf2
Timestamp: 2012-08-12 23:50:42
Author: Lapinkiller
Committer: Damien Regad
Details ] Diff ]
Fix 0006479: Direct project links

Adding possibility to change the current project id via GET/POST
parameters. Enables direct project selection for the following pages:
 * bug_report_page.php
 * view_all_bug_page.php

Lapinkiller's original patch was modified to align with MantisBT coding
guidelines, and reword the commit message.

Signed-off-by: Damien Regad <damien.regad@merckgroup.com>
mod - bug_report_page.php Diff ] File ]
mod - core/helper_api.php Diff ] File ]
mod - view_all_bug_page.php Diff ] File ]
mod - view_all_inc.php Diff ] File ]
MantisBT: master 0fdebfb5
Timestamp: 2012-08-12 23:50:42
Author: Lapinkiller
Committer: Damien Regad
Details ] Diff ]
Fix 0006479: Direct project links

Adding possibility to change the current project id via GET/POST
parameters. Enables direct project selection for the following pages:
 * bug_report_page.php
 * view_all_bug_page.php

Lapinkiller's original patch was modified to align with MantisBT coding
guidelines, and reword the commit message.

Signed-off-by: Damien Regad <damien.regad@merckgroup.com>
mod - bug_report_page.php Diff ] File ]
mod - core/helper_api.php Diff ] File ]
mod - view_all_bug_page.php Diff ] File ]
mod - view_all_inc.php Diff ] File ]
MantisBT: master-1.2.x 00dbc614
Timestamp: 2012-08-13 05:51:16
Author: dregad
Details ] Diff ]
Fix 0006479: Force page reload to refresh Project Selector
mod - bug_report_page.php Diff ] File ]
mod - view_all_bug_page.php Diff ] File ]
mod - view_all_inc.php Diff ] File ]
MantisBT: master efa18ce9
Timestamp: 2012-08-13 05:51:16
Author: dregad
Details ] Diff ]
Fix 0006479: Force page reload to refresh Project Selector
mod - bug_report_page.php Diff ] File ]
mod - view_all_bug_page.php Diff ] File ]
mod - view_all_inc.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2005-12-09 04:36 elmuerte New Issue
2006-12-11 13:06 ape Note Added: 0013802
2006-12-12 02:30 vboctor Note Added: 0013806
2007-04-16 02:26 vboctor Note Added: 0014351
2007-04-16 02:26 vboctor Status new => acknowledged
2007-05-02 13:50 ape Note Added: 0014419
2012-08-08 10:44 Lapinkiller File Added: mantisBT#6479-direct-access-to-project-for-report-and-view-bug-list.diff
2012-08-08 10:46 Lapinkiller Note Added: 0032509
2012-08-08 11:29 dregad Note Added: 0032511
2012-08-08 13:09 Lapinkiller Note Added: 0032514
2012-08-09 03:08 dregad Note Added: 0032521
2012-08-09 05:46 Lapinkiller Note Added: 0032525
2012-08-10 03:38 Lapinkiller Note Edited: 0032525 View Revisions
2012-08-13 02:54 Lapinkiller Note Added: 0032546
2012-08-13 04:27 dregad Note Added: 0032548
2012-08-13 09:17 dregad Note Added: 0032550
2012-08-13 10:55 Lapinkiller Changeset attached => MantisBT master-1.2.x edfbecf2
2012-08-13 10:55 dregad Changeset attached => MantisBT master-1.2.x 00dbc614
2012-08-13 10:55 dregad Assigned To => dregad
2012-08-13 10:55 dregad Status acknowledged => resolved
2012-08-13 10:55 dregad Resolution open => fixed
2012-08-13 10:55 dregad Fixed in Version => 1.2.12
2012-08-13 10:55 Lapinkiller Changeset attached => MantisBT master 0fdebfb5
2012-08-13 10:55 dregad Changeset attached => MantisBT master efa18ce9
2012-08-13 10:57 dregad Target Version => 1.2.12
2012-11-10 18:54 dregad Status resolved => closed
2013-04-05 17:56 grangeway Status closed => acknowledged
2013-04-05 17:56 grangeway Note Added: 0036186
2013-04-05 19:21 grangeway Relationship added related to 0015721
2013-04-06 03:40 dregad Status acknowledged => closed
2013-04-06 07:23 grangeway Status closed => acknowledged
2013-04-06 09:22 dregad Tag Attached: 2.0.x check
2013-04-06 09:23 dregad Status acknowledged => closed


MantisBT 1.2.16dev master-1.2.x-8c2bd07 [^]
Copyright © 2000 - 2013 MantisBT Team
Time: 0.1354 seconds.
memory usage: 2,910 KB
Powered by Mantis Bugtracker