Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,045
Community Members
 
Community Events
165
Community Groups

Cannot connect jira project to github repository from ToolChain Page.

Edited

Starting out learning Jira Cloud.


1) Using the free plan for both Jira Cloud and Github.

2) Installed the "Github for Jira" App & the "Atlassian Jira App" in GitHub and connected them.

jira-repopermission.jpg

3) Created an organisation in GH and created a simple private repo for testing.

4) Created a scrum template, team managed project in Jira.

5) But somehow at this stage, The Project cannot connect to a GH Repo. At this screen Project --> ToolChain 

Clipboard03.jpg

6) If I click on the "Github Link", a new tab opens and it shows a blank page. (I refreshed both the GH and Jira website and tried but still same blank page when connecting).

7) The URL of the blank page is below.



https://id.atlassian.com/outboundAuth/finish?code=2662c10b442d188512fc&state=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb250YWluZXJJZCI6IjhjMzdiM2U3LWQ3NjItNDVlNi1hNmUyLWE0YzkwMzRjMzJmYl8yMjI3MmZjNS1jZjI3LTQxYmMtYjBiZC04NjVkYjNmNTdhYTgiLCJzZXJ2aWNlS2V5IjoiZ2l0aHViIiwiYWFJZCI6IjYwMjM2NTljNjkyZGExMDA3MGVhYzlmZCIsInJlZGlyZWN0VXJsIjoiaHR0cHM6Ly9wb3B1cC8iLCJzY29wZXMiOlsicHVibGljX3JlcG8iLCJyZWFkOm9yZyIsInJlcG8iXSwiaWF0IjoxNjUzOTE0OTU2LCJleHAiOjE2NTM5MTg1NTYsImlzcyI6IjkxZTNkY2VkLWI4NjgtNDBhZS1hMGE3LWMwYj...

 

8) I uninstalled both the connector apps and repos and project and started from scratch but still get the same error.

Any guidance?

Thanks.

2 answers

1 accepted

The resolutions of setup problems is explained in the post messages.

The Flow of the JIRA-GITHUB integration is explained here:

Robert Wen COMMUNITY LEADER May 31, 2022

The Code page isn't empty.  It's showing the repos that are connected to Jira and where on the Jira issue you can perform actions such as creating a branch, and creating a pull request.

The integration that you're using allows connection to the Git repo only.  This allows you to do the following:

From a Jira issue, create a branch that has the name of the Jira issue ID
From a Git commit comment, connect the commit to the Jira issue
Create a pull request from a Jira issue.
You can sync GitHub issues with Jira issues, but that involves additional integrations from the Atlassian Marketplace.

You cannot create a Jira issue and "hardwire" the Jira issue ID.  Jira determines the ID

1 vote
Robert Wen Community Leader May 30, 2022

I would try again with a company-managed project. Team-managed projects may not be supported.

Hi, Thanks for responding. I'm just new to all this. The blank page just went through about a few minutes ago. Now in the ToolChain Page This is what I get:

jira-toolchain.jpg

 

Also Now I'm getting this screen on the Project --> Code Page

jira-code.jpg

So repo is detected (I think?) but is not properly connected to the project perhaps?

I have started the GH backfill process again in Jira but it is taking too long to complete for just two issues in the repo:

gh-issues.jpg

 

Am I following the right process? Are the smart commit issues of the right form for Jira to pickup?

Thanks

Robert Wen Community Leader May 30, 2022

You're on the right track.  You tie the commit to the Jira issue by prefacing the commit comment with the Jira issue ID.

Like Bulbul Bhojpuri likes this

As suggested, I also tried to create another SCRUM, "company-managed" JIRA project and a new private Organization repo and connect both. It still ends up in the situation where the repo is detected but not connected and issues not showing up.

jira-connected.jpg

Robert Wen Community Leader May 30, 2022

@Bulbul Bhojpuri , at this point, I'm wondering about your expectations.

The typical use case is to connect changes in Git to a Jira issue.  That's when the connection occurs.  This is done by having the Jira issue ID as the first part of your commit comment.

Anything more extensive such as syncing Jira issues with GitHub issues is going to involve a Marketplace app.

Like Bulbul Bhojpuri likes this

Thank you so much for pursuing this. I probably misunderstood the purpose of the jira-github connector then.


So the GH issues created with Jira project key are independent of Jira Issue right? They won't get copied over into Jira.

But if I enter a code commit in GitHub with a Jira Issue ID, then those code changes along with the commit get linked to an existing Jira Issue, right?

So briefly the flow would be, a) Create Jira issue b) modify code and commit with Jira Issue ID c) That commit and code gets linked to the Jira Issue.

Is it possible to create a commit with a new Jira Issue ID and that commit gets created automatically in Jira with a new Issue ID?

I will look into this more. So besides the official documentation, do you know of any links or tutorials where this is explained in a step-by-step manner or with real examples?

Would I find such a guide in the Atlassian University?

This is was insightful to me. Thanks.

Another query which is related I guess. The Code page is empty even though the Issues page is showing two issues linked to the two commits. Is it normal? or am I doing the wrong flow again? Thanks.

code2.jpg

The Issues Page:

code1.jpg

Robert Wen Community Leader May 31, 2022

The Code page isn't empty.  It's showing the repos that are connected to Jira and where on the Jira issue you can perform actions such as creating a branch, and creating a pull request.

Like Bulbul Bhojpuri likes this
Robert Wen Community Leader May 31, 2022

The integration that you're using allows connection to the Git repo only.  This allows you to do the following:

  • From a Jira issue, create a branch that has the name of the Jira issue ID
  • From a Git commit comment, connect the commit to the Jira issue
  • Create a pull request from a Jira issue.

You can sync GitHub issues with Jira issues, but that involves additional integrations from the Atlassian Marketplace.

You cannot create a Jira issue and "hardwire" the Jira issue ID.  Jira determines the ID.

Like Bulbul Bhojpuri likes this

Appreciate you for taking time in explaining all this. I will copy these notes and proceed to experiment with Jira & its integration features.

Like Robert Wen likes this
Robert Wen Community Leader May 31, 2022

Very good.  If you think your original questions have been answered, please accept the answer so the topic is considered closed.

Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,512 views 37 44
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you