Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Git Integration with Jira

Boyd K
Contributor
August 29, 2022

We have setup Git (Gitlab) Integration with Jira.  Both are self-managed, self-hosted.  We see how the Git commits are listed as associated with a Jira Issue and how we can click on each commit to see the files updated, added, and/or deleted.

But is there a way to have Jira provide a list of all the files changed for an Issue?  Given a list of Issues that are built into a release, we would like a way to retrieve a list of the files changed for each Issue.  Such information is required to send with the release.

 

Thanks, Boyd

2 answers

1 accepted

0 votes
Answer accepted
Boyd K
Contributor
August 30, 2022

I received the following as a possible solution:

"It would probably be easiest to do this directly from Git. Since each Git commit has the issue ID in the commit message,
and Git has a log format that will print out the names of the changed files without also printing the changes,
it should be possible to have a script that takes in a list of Jira IDs and uses Git to print a list of changed files.

Something like this should get you most of the way there:
    git log --name-only --pretty=format: --grep='ISSUE ID' | sort -u
That will give you a combined list of files for all commits that have ISSUE ID in the message."

0 votes
Benjamin
Community Champion
August 29, 2022

Hi @Boyd K ,

 

Here's s documentation that may point you in the right direction:

https://bigbrassband.com/overview.html

 

-Ben

Boyd K
Contributor
August 30, 2022

Received the following from BigBrassBand: "list of all changes per branch by using the Git Roll Up tab: https://help.gitkraken.com/git-integration-for-jira-data-center/git-roll-up-tab-docs-gij-self-managed/".

However, after merge requests to the "next" branch, Git Roll Up no longer can list the changed files since it compare between the branches.

Like Benjamin likes this

Suggest an answer

Log in or Sign up to answer