class WorkTypesCreateMeta extends java.lang.Object
An updated terminology utility class for retrieving work type (issue type) metadata in Jira Cloud.
WorkTypesCreateMeta provides static methods that delegate to IssueTypesCreateMeta, using updated
terminology. Every method in this class calls the corresponding method on IssueTypesCreateMeta
under the hood, so behavior is identical.
Existing code using IssueTypesCreateMeta continues to work unchanged. New code can use
WorkTypesCreateMeta for updated terminology.
// Get all work types for a space
def workTypes = WorkTypesCreateMeta.getWorkTypes("SR")
workTypes.each { workType ->
println "Work Type: ${workType.name"
}
// Get field metadata for a specific work type
def fields = WorkTypesCreateMeta.getCreateFieldMetadataForASpaceAndWorkTypeId("SR", "10001")
} | Constructor and description |
|---|
WorkTypesCreateMeta() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.util.List<com.atlassian.jira.rest.clientv2.model.FieldCreateMetadata> |
getCreateFieldMetadataForASpaceAndWorkTypeId(java.lang.String spaceKey, java.lang.String workTypeId)Retrieves field creation metadata for a specific space and work type. |
|
static java.util.List<com.atlassian.jira.rest.clientv2.model.IssueTypeIssueCreateMetadata> |
getWorkTypes(java.lang.String spaceKey)Retrieves all work types (issue types) available for creating work items in the specified space. |
| 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) |
Retrieves field creation metadata for a specific space and work type.
Delegates to IssueTypesCreateMeta.getCreateFieldMetadataForAProjectAndIssueTypeId.
spaceKey - the key of the space (project)workTypeId - the ID of the work type (issue type)Retrieves all work types (issue types) available for creating work items in the specified space.
Delegates to IssueTypesCreateMeta.getIssueTypes.
spaceKey - the key of the space (project) to retrieve work types for