Adding github releases to jira

Akhil Gopinatha Kurup February 27, 2018

We are using github as source control and we keep all versions (github tags) in github . is it possible to sync github releases to jira 

2 answers

3 votes
Hartmut Leister June 9, 2021

If you're not afraid to script this yourself, you can do this using

 

a stub to do this on python 3.7 would then be
(read the above docs before!)

# get git tags
>>> os.chdir( git_folder_local_path)
>>> git_tags = subprocess.check_output("git tag --list").decode().splitlines()

# get existing jira versions (jira_inst is a connected jira-python instance)
>>> jira_versions = [ vers.name for vers in jira_inst.project_versions( proj_name)]

# get missing jira versions
>>> missing_versions = set( git_tags) - set( jira_versions)

# create missing versions (has to be done via API)
>>> headers = {
'Accept': 'application/json',
'Authorization': 'Basic ' + base64_obfuscated_credentials,
'Content-Type': 'application/json'
}
>>> def AddProjectVersion( project, name):
data = { "name": name, "project": project }
req = requests.post( JIRA_BASE_URL + "rest/api/2/version", headers = headers, json = data)
if not req:
raise RuntimeError( "API call failed [{}]: {}".format( req.status_code, req.content.decode()))
return req.json()
>>> for vname in missing_versions:
AddProjectVersion( proj_name, vname)

 

3 votes
Steven de Groot
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 28, 2018

Hi Akhil,

You can integrate GitHub with JIRA using the DVCS connector.

https://confluence.atlassian.com/adminjiraserver/linking-a-bitbucket-or-github-repository-with-jira-938846899.html

 

-Steven

Akhil Gopinatha Kurup February 28, 2018

i have integrated this connector i can see the github commits, pull requests in jira tickets , but i want to know how we can sync github version releases in jira releases 

Steven de Groot
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 2, 2018
Like JAK likes this
Eric Nelson January 3, 2020

I don't follow where this plugin helps. It looks like Akhil is looking for the "JIRA Releases" which are in the "Release Hub" of JIRA to be auto-populated by git tags as seen by Bitbucket. 

Like David Rogers likes this
Alairion-GD January 21, 2020

I would like to know this as well.  All the plugin seems to do is add a link to my repo on the side bar.  I'd like to at least be able to enter a GitHub branch/tag URL into my release notes or a comment field or something.

Bhavna Bhawnani April 1, 2020

Following this. I would also like to know how can i see Releases from Github in JIRA. We use the new Github - JIRA intergation maintained by Github. 

Like # people like this
Tiago_Rocha May 22, 2020

Any news on this? I would like to make a release on Github, add the tag to Jira release and tag the tickets on a specific column with that tag. 

Like # people like this
David Jorjani June 3, 2020

Same request! Has anyone found a solution?

Stefanos Hadjipetrou September 17, 2020

Any updates on this request?

Eli Y_ Park December 14, 2020

Following

Pascal Salm December 14, 2020

same here...

Ofir Tehila December 16, 2020

Same need here

Yehuda Cohen December 29, 2020

Same here too ...

michael.nguyen February 4, 2021

following.

Matthew Mims February 5, 2021

Same here. Would make our release management so much easier.

Nathan Dierks March 30, 2021

This would be incredibly helpful for release management.

Justin Liu May 23, 2021

f

yehudamakarov July 11, 2021

this would be helpful because you can manage your tickets in jira, and generate the release info there and then get it into github with a release there with the fix version

Like David likes this
Leonardo Viada February 17, 2022

Reaching out to know if there's any update...

Anthony Comito March 5, 2022

hi

David Kahara June 21, 2022

Is there any update on this? Seems like a feature a lot of people are interested in 🙂

Like Tamir Melamed likes this
Hartmut Leister June 21, 2022

You should only expect such a feature for Jira Cloud. Atlassian has mostly abandoned feature development for Jira Server and Datacenter.

 

You might get this solution from github, however.

 

My script below might be implemented in a github workflow
-> https://community.atlassian.com/t5/Jira-questions/Adding-github-releases-to-jira/qaq-p/738261#M487918

Tenzing Doleck December 12, 2023

looking for JIRA cloud as well

Suggest an answer

Log in or Sign up to answer