@com.adaptavist.hapi.cloud.analytics.CloudTracked class Components extends java.lang.Object
Provides utilities for working with Project Components
Jira components help you group issues in your project around product features, departments, or workstreams. You can assign component owners, and auto-assign people to issues linked to those components.
| Constructor and description |
|---|
Components() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static Component |
create(java.lang.String key, java.lang.String name, groovy.lang.Closure<?> specification)Creates a project component in the project with the given key and name, example usage: |
|
static Component |
getById(java.lang.String id)Get a project component by its current id |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Creates a project component in the project with the given key and name, example usage:
Projects.create('SR', 'ScriptRunnerComponent') {
description = 'A scriptrunner component'
setDefaultAssigneeToProjectLead()
}
By default, the project lead is set to the current user and the default assignee is unassignedkey - The key of the project where the component is going to be createdname - The name the project component should havespecification - Closure containing parameters to set on the created project componentGet a project component by its current id
id - project component id