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
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
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
I'd suggest to check the github plugin:
https://marketplace.atlassian.com/plugins/com.xiplink.jira.git.jira_git_plugin/server/overview
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.
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)
following
It looks like you're new here. Sign in or register to get started.