We're using JIRA 4.3 and I need to create a large number of projects using the Jelly Runner.
Here's whats given in the documentation
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib"> <jira:CreateProject key="ABC" name="A Project" lead="a-user"> <!-- other jelly tags --> </jira:CreateProject> </JiraJelly>
However, I also need to assign the following schemes to each project. All projects use the same respective schemes
Issue Type Scheme: Notification Scheme: Permission Scheme: Issue Security Scheme: Field Configuration Scheme: Issue Type Screen Scheme: Workflow Scheme:
Is there a way to do this in one scipt?
I found this link that mentions how to associate a project to a workflow scheme, but it seems to be aimed towards JIRA 5.
<jira:CreatePermissionScheme> - for creating new permission scheme (works for jira 4.3)
The following code is not exact answer for you question but it should help you to start
To Create multiple projects and i added ony one for loop for project name and you have to add another forloop for project keys
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib" xmlns:util="jelly:util" xmlns:j="jelly:core"> <util:tokenize var="projects" delim=",">projectA,ProjectB</util:tokenize> <j:forEach var="project" items="${projects}"> <jira:CreateProject key="ABC" name="project" lead="a-user"> <!-- other jelly tags --> </jira:CreateProject> </j:forEach> </JiraJelly>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.