Now we get list of jira issues from the build like this http://bamboo.companyname.com/rest/api/latest/result/PROJ.json?buildstate=Successful&expand=results.result.jiraIssues&max-results=10
Is there any possibility to get list of issues from last deployed build?
There isn't any API to get the last deployed release's issues.
You may want to consider getting it from database:
SELECT dvji.* FROM
DEPLOYMENT_RESULT dr
JOIN DEPLOYMENT_VERSION_JIRA_ISSUE dvji ON dvji.DEPLOYMENT_VERSION_ID=dr.VERSION_ID
WHERE dr.DEPLOYMENT_RESULT_ID=
(SELECT MAX(DEPLOYMENT_RESULT_ID) FROM
DEPLOYMENT_PROJECT dp
JOIN DEPLOYMENT_ENVIRONMENT de ON de.PACKAGE_DEFINITION_ID=dp.DEPLOYMENT_PROJECT_ID
JOIN DEPLOYMENT_RESULT dr ON dr.ENVIRONMENT_ID=de.ENVIRONMENT_ID
WHERE dr.DEPLOYMENT_STATE='Successful'
AND dp.NAME='<projectName>'
AND de.NAME='<environmentName>');
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.