Assign To - User is not able to see issue

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
udo
Posts: 47
Joined: 09 Sep 2010, 11:42

Assign To - User is not able to see issue

Post by udo »

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
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

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

Post by istvanb »

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

$g_private_bug_threshold = REPORTER;
udo
Posts: 47
Joined: 09 Sep 2010, 11:42

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

Post by udo »

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: 09 Sep 2010, 11:42

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

Post by udo »

any news regarding this? thanks, udo
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

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

Post by istvanb »

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.
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

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

Post by AlainD. »

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
udo
Posts: 47
Joined: 09 Sep 2010, 11:42

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

Post by udo »

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
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

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

Post by AlainD. »

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
udo
Posts: 47
Joined: 09 Sep 2010, 11:42

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

Post by udo »

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.
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

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

Post by AlainD. »

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
Post Reply