Skip to end of banner
Go to start of banner

deleteIssue

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8? Click here and leave these dusty old pages behind!

Availability

This routine is available starting with katl-commons 1.0.

This routine is available for Jira server and cloud deployment options.

Syntax

deleteIssue(issuekey)

Cloud Syntax

deleteIssue(issuekey, [deleteSubtasks])


Description

Deletes the selected issue.

Parameters

Parameter name

Type

Required

Description

issuekey

string

Yes

Key of the issue that has to be deleted.

Cloud Parameters

Parameter name

Type

Required

Description

issuekey

string

Yes

Key of the issue that has to be deleted.

deleteSubtasksbooleanNo

Whether the issue's subtasks are deleted when the issue is deleted.

Return type

None. The returned value has no meaning.

Example

Example 1

deleteIssue("PRJ-323");

Result: If the current issue is not "PRJ-323" or a child of "PRJ-323", then the issue "PRJ-323" will be deleted.

Example 2

deleteIssue(key);

Result: Since "key" variable returns the key of the current issue, the delete operation will fail.

Notes

Cannot delete the current issue or the parent of the current issue.

See also

 

 

  • No labels