Assign To - User is not able to see issue

Get help from other users here.

Moderators: Developer, Contributor

Assign To - User is not able to see issue

Postby udo » Jun 03, 2011 8:48 am

Hello,

I have a custom workflow in place: New > Assigned > In Progress > Retest > Resolved > Closed

At the moment the issue has status "In Progress". I have assigned it to an user of level "reporter". He is not able to see the issue...

Do I have to configure this somewhere?

Thanks, Udo
udo
 
Posts: 47
Joined: Sep 09, 2010 6:42 am

Re: Assign To - User is not able to see issue

Postby istvanb » Jun 03, 2011 9:16 am

Do you use private issues? If so then check your $g_private_bug_threshold variable, it must be

$g_private_bug_threshold = REPORTER;
istvanb
 
Posts: 226
Joined: Aug 22, 2010 4:00 pm

Re: Assign To - User is not able to see issue

Postby udo » Jun 03, 2011 9:57 am

yep, I'm using $g_default_bug_view_status = VS_PRIVATE;

unfortunately setting $g_private_bug_threshold = REPORTER; is not enough.

I also have $g_limit_reporters = ON and had to set it to $g_limit_reporters = OFF but then reporters see every issue... which is confusing for them.

any suggestions to make this work?

thanks, udo
udo
 
Posts: 47
Joined: Sep 09, 2010 6:42 am

Re: Assign To - User is not able to see issue

Postby udo » Jun 07, 2011 10:22 am

any news regarding this? thanks, udo
udo
 
Posts: 47
Joined: Sep 09, 2010 6:42 am

Re: Assign To - User is not able to see issue

Postby istvanb » Jun 07, 2011 10:55 am

I am afraid that a issue can not be resolved. As far as I know the current mantis version does not support this type of exceptions, so either you allow the reporters to see private issues, or you can not assign issues to them.
istvanb
 
Posts: 226
Joined: Aug 22, 2010 4:00 pm

Re: Assign To - User is not able to see issue

Postby AlainD. » Jun 08, 2011 9:18 am

The check of limit_reporters has the priority on the private status check:

Code: Select all
function access_has_bug_level( $p_access_level, $p_bug_id, $p_user_id = null ) {
(...)
   # check limit_Reporter (Issue #4769)
   # reporters can view just issues they reported
   $t_limit_reporters = config_get( 'limit_reporters' );
   if(( ON === $t_limit_reporters ) && ( !bug_is_user_reporter( $p_bug_id, $p_user_id ) ) && ( !access_has_project_level( REPORTER + 1, $t_project_id, $p_user_id ) ) ) {
      return false;
   }

   # If the bug is private and the user is not the reporter, then the
   #  the user must also have higher access than private_bug_threshold
   if( VS_PRIVATE == bug_get_field( $p_bug_id, 'view_state' ) && !bug_is_user_reporter( $p_bug_id, $p_user_id ) ) {
(...)


It means that if you set $g_limit_reporters = ON, then all reporters will see at most they reported issues, and only them. Not the other ones assigned to them.
AlainD.
ti lamp, ti lamp n'arivé!
Mantis: 1.2.5
PHP: 5.2.0
OS: Linux (etch)
Plugins: MantisGanttChart | Mantis Graphs | Source Control Integration | Subversion / WebSVN Integration
AlainD.
 
Posts: 57
Joined: Mar 23, 2011 9:30 am
Location: Bruxelles

Re: Assign To - User is not able to see issue

Postby udo » Jun 08, 2011 10:47 am

thank you Alain. much clearer now.

could you also please include the php file name?

do you know the "assigned to" variable? I'm thinking of extending this functionality for my installation... (note: I would suggest this as a general functionality)

thanks, udo
udo
 
Posts: 47
Joined: Sep 09, 2010 6:42 am

Re: Assign To - User is not able to see issue

Postby AlainD. » Jun 08, 2011 1:02 pm

Well, for your information, you must know that almost all the functions in Mantis named as foo_something_else are located in the file foo_api.php under the subfolder "core".
So here since the function name starts by access I think it's in the file core/access_api.php

Second, I don't understand what you're talking about with the "assigned to" variable.
AlainD.
ti lamp, ti lamp n'arivé!
Mantis: 1.2.5
PHP: 5.2.0
OS: Linux (etch)
Plugins: MantisGanttChart | Mantis Graphs | Source Control Integration | Subversion / WebSVN Integration
AlainD.
 
Posts: 57
Joined: Mar 23, 2011 9:30 am
Location: Bruxelles

Re: Assign To - User is not able to see issue

Postby udo » Jun 08, 2011 1:46 pm

what I ment is the variable that contains the username of the user which has the issue currently assigned. it's the "Assigned To" field of an issue.
udo
 
Posts: 47
Joined: Sep 09, 2010 6:42 am

Re: Assign To - User is not able to see issue

Postby AlainD. » Jun 08, 2011 2:15 pm

Hummm ok. Well if I remember correctly it should be the value of the column 'handler_id' of the mantis_bug_table for your bug id.
AlainD.
ti lamp, ti lamp n'arivé!
Mantis: 1.2.5
PHP: 5.2.0
OS: Linux (etch)
Plugins: MantisGanttChart | Mantis Graphs | Source Control Integration | Subversion / WebSVN Integration
AlainD.
 
Posts: 57
Joined: Mar 23, 2011 9:30 am
Location: Bruxelles


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 9 guests