Hi ,
I am new to bamboo and writing a plugin which will show the time taken by each task in job and status of the task in current build .
Currently I am using below line of code to get the TaskDefinition ,but no luck to get start time, end time and status of task from task definition.
List<? extends ImmutableChainStage> stages = getChainResultsSummary().getImmutablePlan().getStages();
ImmutableChainStage stage=stages.get(0);
Set<? extends ImmutableJob> jobs= stage.getJobs();
ImmutableJob job=jobs.iterator().next();
TaskDefinition task= job.getTaskDefinitions().get(0);
Please suggest the correct java api for bamboo.
Thanks