-
Notifications
You must be signed in to change notification settings - Fork 41
Console
Nikita Teplov edited this page May 24, 2019
·
5 revisions
- A great debugging tool for your scripts. You can run the script once and make sure that everything works as it was intended there are no errors. This saves a lot of time in comparison with debugging on workflow. Imagine that you need to automatically assign an issue to a project leader if no component manager is appointed. The console will allow you to test your script with one click, without endlessly editing and publishing workflow. To do this, simply define a specific task in the issue variable and start testing:
import com.atlassian.jira.component.ComponentAccessor;
def issue = ComponentAccessor.issueManager.getIssueObject('TEST-123')