I am looking for a way to get how many deployments happened at end of the sprint In Jira board. Jira is integrated into bitbucket and for CI/CD we are using bitbucket pipelines.
Our sprint closes every 2 weeks. So either Monday or Tuesday morning everyone closes their sprint we need a value to know on all boards.
Do we have any restful Jira API's to hit and get the data.
Please point me in the right direction to get it working.
Hello @sravani.kambhampati ,
I don't use Bitbucket pipelines myself, however, not knowing much about your requirements, I can suggest the following:
Sprint = "SPRINT+NAME" AND deploymentState ~ "successful"
Another option for point #2 would be to try to use one of the below internal endpoints that are not officially supported and documented (so I am not sure they also return the deployment information), but they work so far (replace ISSUE_ID with the issue-ID, not the issue key):
So, in this latter case you should write a script that:
For further details, please see:
I hope this helps.
Cheers,
Dario
Also, in order to provide more details about the dev-status internal REST API endpoints (from How to retrieve deployments on a Jira issue using REST API):
We have the below feature request open in our system since couple of years in order to have a public REST API endpoint to get the information displayed in the development panel:
- [JSWCLOUD-16901] Provide a public REST API endpoint to get development info associated with an issue
As you can see the provided endpoints are documented as the workaround for this feature request that got around 50 votes so far. Therefore, we can safely assume that the provided endpoints will keep on working for still some time, or they will be replaced by official ones.
You may want to vote and watch the above feature request so that you will get notified in case of any update. The feature will be addressed according to the Implementation of New Features Policy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.