How to get Deployment information out of Jira?

Rodion Martynov January 27, 2020

Issues have Releases information
image.png

A level deeper, there is a Deployment information

image.png

How can I get this deployment information into Confluence?
Is there a possibility of retrieving that via Jira API?

2 answers

1 accepted

1 vote
Answer accepted
Lenin Raj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 28, 2020

@Rodion Martynov 

This information isn't available via the 'Get Issue' API. However if you know the individual deployment's key (when you submitted it), you can retrieve it via the endpoint @Max Foerster - K15t  mentioned.

 

However, you can use deployment information in JQL as well. See https://confluence.atlassian.com/jiracorecloud/advanced-searching-developer-reference-967312946.html (Deployments section)

 

Using JQL, you can use 'Jira issues' macro to show appropriate issues in Confluence.

Rodion Martynov January 28, 2020

@Lenin Raj  

Thank you for answering.

 

We need that information in our change control log that we retrieve based on the `Jira Issue` in status `DONE` and we don't have the deployment key at that point.

 

Is it possible to ask Atlassian Team to include deployment information into Jira Confluence Changelog Report and/or Jira API via GET by Issue?

Can you point out where is the place to do that, please?

1 vote
Max Foerster - K15t
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2020

Hi @Rodion Martynov ,

a had a quick glance at the Cloud REST API documentation. Is this what you're looking for?

Get a deployment by key 

Best, Max

Mike Heyns March 13, 2021

I can successfully submit deployment information via

https://api.atlassian.com/jira/deployments/0.1/cloud/<tenant-id>/bulk

but I get a 404  when trying to retrieve it via

https://api.atlassian.com/jira/deployments/0.1/cloud/<tenant-id>/pipelines/<pipeline-id>/environments/<environment-id>/deployments/<deployment-sequence-number>

Can you advise what I'm doing wrong or where I can get more information?

Like Jeff Tchang likes this
Karuna Kant Mishra October 28, 2022

I am exactly on same boat.

for bulk posting how to i get the pipeline id and max of deployment sequence number. so that we can bulk post.

Like Jannis Morgenstern likes this

Suggest an answer

Log in or Sign up to answer