I have a script in Jira Data Center, but the context is different and I'm having trouble adapting the code to script runner cloud
How can I declare this in cloud?
def category = issue.getProjectObject().getProjectCategoryObject();
def project= issue.getProjectObject().getName()
if (!category)
{
// my code