This function returnsĀ true only if current issue is a clone of another issue

An issue is a clone of another issue if it's being created by Jira "Clone" operation, or has issue links of type "clones".


isAClone() #Output: Boolean



Parser expressionDescription


 isAClone() 


This example returns true or false, depending on whether an issue is a clone, e.g.:

true



This function returns a


This function is useful for bypassing validations in theĀ Create Issue transition when the issue is being created by a clone operation.



Use cases and examples



Parser function cloud
Map(question)
Notes

Workaround

There is no direct way of implementing the same behaviour, but we can filter an issue list comparing some of its fields with the Current issue, so we can check if the current issue has the same fields as any other on that issue list, which would mean that it is a clone. For example:

let current = issue;
let list = issue.links.map(l=>l.linkedIssue);
list.some(i=>i.priority==issue.priority && i.summary==issue.summary)







Status
Tech review

Style guide




Short description

Checks whether an issue is a clone.

Output

Available since

Label