Additional Jython Helper Functions
This topic provides information on additional helper functions available in Jython Script tasks and Python scripts for plugin tasks, complementing the Jython API.
The following helper functions are available in Jython Script tasks and Python scripts for plugin tasks.
Function | Description | Detail |
---|---|---|
getCurrentTask() | Returns the current task. | Returns a Task object. |
getCurrentPhase() | Returns the current phase. | Returns a Phase object. |
getCurrentRelease() | Returns the current release. | Returns a Release object. |
getTasksByTitle(taskTitle, phaseTitle = None, releaseId = None) | Finds tasks by title. | taskTitle : The task title to search. phaseTitle : The phase title to search tasks on. Optionally, will search tasks in the whole release if not provided. releaseId : The release ID to search tasks on. Optionally, will search tasks in the current release if not provided. Returns an array of Task objects. |
getPhasesByTitle(phaseTitle, releaseId = None) | Finds phases by title. | phaseTitle: The phase title to search. releaseId : The release id to search phases on. Optionally, will search phases in the current release if not provided.Returns an array of Phase objects. |
getReleasesByTitle(releaseTitle) | Finds releases by title. | releaseTitle : The release title to search.Returns an array of Release objects. |