@com.adaptavist.hapi.platform.analytics.Tracked class Projects extends java.lang.Object
Constructor and description |
---|
Projects() |
Type Params | Return Type | Name and description |
---|---|---|
|
static com.atlassian.jira.project.Project |
create(java.lang.String key, java.lang.String name, groovy.lang.Closure<?> specification) Creates a project with the given key and name, example usage: |
|
static java.util.Collection<com.atlassian.jira.project.Project> |
getAllProjects() Gets all projects visible to the current logged in user |
|
static com.atlassian.jira.project.Project |
getByKey(java.lang.String projectKey) Get a project by its current key |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a project with the given key and name, example usage:
Projects.create('SR', 'ScriptRunner')By default, the project lead is set to the current user and the default assignee is
unassigned
key
- The key the project should havename
- The name the project should havespecification
- Closure containing parameters to set on the created projectGets all projects visible to the current logged in user
Get a project by its current key
projectKey
- project key