How do I set preferences per project?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
TomLewis
Posts: 5
Joined: 09 Feb 2016, 22:52

How do I set preferences per project?

Post by TomLewis »

I want to be able to set custom preferences per project, for instance all projects bare 1 are private for staff, and then I would like 1 public for the public to post in, setting the default setting as private on it, not allowing them to select a staff member to assign it to and a few other things.
TomLewis
Posts: 5
Joined: 09 Feb 2016, 22:52

Re: How do I set preferences per project?

Post by TomLewis »

Can I please get a reply?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How do I set preferences per project?

Post by atrol »

Please use Search before posting and read the Manual
TomLewis
Posts: 5
Joined: 09 Feb 2016, 22:52

Re: How do I set preferences per project?

Post by TomLewis »

Hello atrol, I have read through the administration guide previous to posting in the forums, it does not explain how to do what I want.

Let me try re-phrasing, I would like to have a separate config_inc.php for 1 project (Public Issue tracking).
we currently have about 10 projects we use for staff and have kept the tracker for staff only until recently, I have created a new project that I wish the public (my users) to be able to submit support request tickets into. Now the problem is, there are a bunch of defaults that need to be changed for that ONE specific project, not our 10 other staff projects, this pubic project needs its own default-settings changed for submitting tickets.
When you go to submit a new ticket (Issue) the default "View Status" is set to Public, I want to make this default to Private for the ONE public project only, This is not the only default I want to change, its an example to explain how I need to find the method used to set default configuration per project.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How do I set preferences per project?

Post by atrol »

Example how it works;

Goto page "Manage" > "Manage Configuration" > "Configuration Report"
There is a section "Set Configuration Option" at the bottom of the page
Change "Project Name" to the project you want to change
Enter value default_bug_view_status (option name without $g_) in field "Configuration Option"
Set "Type" to "integer"
Enter value 50 (Check core/constant_inc.php for other values) in field "Value"
Click button "Set Configuration Option"

This is just needed for those options that are not available on other pages like "Workflow Thresholds", "Workflow Transitions", ...
Please use Search before posting and read the Manual
TomLewis
Posts: 5
Joined: 09 Feb 2016, 22:52

Re: How do I set preferences per project?

Post by TomLewis »

atrol wrote:Example how it works;

Goto page "Manage" > "Manage Configuration" > "Configuration Report"
There is a section "Set Configuration Option" at the bottom of the page
Change "Project Name" to the project you want to change
Enter value default_bug_view_status (option name without $g_) in field "Configuration Option"
Set "Type" to "integer"
Enter value 50 (Check core/constant_inc.php for other values) in field "Value"
Click button "Set Configuration Option"

This is just needed for those options that are not available on other pages like "Workflow Thresholds", "Workflow Transitions", ...
Fantastic! This all makes sense apart from the:
Enter value 50 (Check core/constant_inc.php for other values) in field "Value"
Where I cant see anything set at 50 in this 50 in any relation to default_bug_view_status, I cant even find default_bug_view_status, I tried a few varients in caps etc

EDIT:
I found it in differently named constants

Code: Select all

# project view_state
define( 'VS_PUBLIC', 10 );
define( 'VS_PRIVATE', 50 );
I guess this will be the time consuming bit, trying to figure out what the hell each value is.

EDIT2:
I cannot figure out how to not display the "Assign To" field, this seems to be done differently, the most my search has prevailed is:

Code: Select all

	/**
	 * access level needed to show the Assign To: button bug_view*_page or
	 *  the Assigned list in bug_update*_page.
	 *  This allows control over who can route bugs
	 * This defaults to $g_handle_bug_threshold
	 * @global int $g_update_bug_assign_threshold
	 */
	$g_update_bug_assign_threshold			= '%handle_bug_threshold%';
Im not sure how I can set this for the specific project, as I cant figure out what %handle_bug_threshold% is doing.
TomLewis
Posts: 5
Joined: 09 Feb 2016, 22:52

Re: How do I set preferences per project?

Post by TomLewis »

BUMP.
I need an answer to how to disable the "assign to" field for that one project, People will just assign every single task to me, I need to have someone manage who is assigned what issue, not the person submitting the issue.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How do I set preferences per project?

Post by atrol »

Select the project you want to change in the project selection
Goto page "Manage" > "Manage Configuration" > "Workflow Thresholds"
Uncheck all or some of the check boxes in row "Assign an issue"
Click "Update Configuration"
Please use Search before posting and read the Manual
Post Reply