@com.adaptavist.hapi.cloud.analytics.CloudTracked class IssueCreationDelegate extends AbstractIssuesDelegate<java.util.List<com.atlassian.jira.rest.clientv2.model.FieldCreateMetadata>, com.atlassian.jira.rest.clientv2.model.FieldCreateMetadata>
A delegate for managing issue creation in Jira Cloud.
Use this class to define and set field values when creating an issue. It allows you to specify fields in a declarative manner using a closure, making issue creation simple and efficient.
Example Usage:
// Create a new issue in project "TEST" of type "Task"
Issues.create('TEST', 'Task') {
summary = 'Fix critical bug in production';
description = 'This issue requires immediate attention from the development team.';
setCustomFieldValue('Level Of Confidence', 'High');
} | Constructor and description |
|---|
IssueCreationDelegate(java.util.Map fields) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.List<com.atlassian.jira.rest.clientv2.model.FieldCreateMetadata> |
getMetaDatas() |
|
void |
setSkipScreenCheck(boolean skip)Sets whether to skip screen security checks when setting custom field values. |
Sets whether to skip screen security checks when setting custom field values.
Note: This method is provided for backward compatibility only. In the cloud implementation, screen security cannot be bypassed during issue creation. This method call will be ignored but won't cause compilation errors for existing scripts.
skip - ignored parameter - maintained for backward compatibility