Set Private as Default

Topics: Customizing BugNET
Jan 8, 2013 at 11:01 AM

Hi there,

I would like all my Issues to be submitted as private.  Can I please confirm with you that all I would need to do is go to the stored procedure BugNet_Issue_CreateNewIssue and change the following line:

FROM:
VALUES
 (
  @IssueTitle,
  @IssueDescription,
  @IssueCreatorUserId,
  GetDate(),
  @IssueStatusId,
  @IssuePriorityId,
  @IssueTypeId,
  @IssueCategoryId,
  @IssueAssignedUserId,
  @ProjectId,
  @IssueResolutionId,
  @IssueMilestoneId,
  @IssueAffectedMilestoneId,
  @IssueCreatorUserId,
  GetDate(),
  @IssueDueDate,
  @IssueVisibility,
  @IssueEstimation,
  @IssueProgress,
  @IssueOwnerUserId
 )
RETURN scope_identity()


TO:
VALUES
(
@IssueTitle,
@IssueDescription,
@IssueCreatorUserId,
GetDate(),
@IssueStatusId,
@IssuePriorityId,
@IssueTypeId,
@IssueCategoryId,
@IssueAssignedUserId,
@ProjectId,
@IssueResolutionId,
@IssueMilestoneId,
@IssueAffectedMilestoneId,
@IssueCreatorUserId,
GetDate(),
@IssueDueDate,
1,              /* removed @IssueVisibility and replaced with 1 */
@IssueEstimation,
@IssueProgress,
@IssueOwnerUserId
)
RETURN scope_identity()