I need to pull the branch name, environment details for a build key or Jira issue. From bamboo using Rest API.