Author: jvanzyl
Date: Wed Aug 9 08:53:50 2006
New Revision: 430079
URL: http://svn.apache.org/viewvc?rev=430079&view=rev
Log:
o tweak the workflow if one is specified
Modified:
maven/sandbox/issue/rissue/bin/create_project.rb
Modified: maven/sandbox/issue/rissue/bin/create_project.rb
URL:
http://svn.apache.org/viewvc/maven/sandbox/issue/rissue/bin/create_project.rb?rev=430079&r1=430078&r2=430079&view=diff
==============================================================================
--- maven/sandbox/issue/rissue/bin/create_project.rb (original)
+++ maven/sandbox/issue/rissue/bin/create_project.rb Wed Aug 9 08:53:50 2006
@@ -55,7 +55,8 @@
validate( "lead", $lead )
validate( "notification-scheme", $notification_scheme )
validate( "permission-scheme", $permission_scheme )
- validate( "workflow-scheme", $workflow_scheme )
+ # Assigning the workflow is optional
+ #validate( "workflow-scheme", $workflow_scheme )
puts "Using the following information to create a JIRA project:"
puts " Name: #{$name}"
@@ -77,7 +78,12 @@
if $response.upcase! == "Y"
puts "Creating project ..."
im = IssueManager.new()
- project = im.createProject( $name, $key, $description, $url, $lead,
$notification_scheme, $permission_scheme )
+ # Create the project
+ projectId = im.createProject( $name, $key, $description, $url, $lead,
$notification_scheme, $permission_scheme )
+ # Update the workflow if requested
+ if $workflow_scheme != nil
+ im.assignWorkflowScheme( projectId, $workflow_scheme )
+ end
end
end