Cannot connect jira project to github repository from ToolChain Page.

Bulbul Bhojpuri May 30, 2022

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.

4 answers

1 accepted

0 votes
Answer accepted
Bulbul Bhojpuri May 31, 2022

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

2 votes
Robert Wen_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 30, 2022

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

Bulbul Bhojpuri May 30, 2022

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_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Bulbul Bhojpuri May 30, 2022

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_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Bulbul Bhojpuri May 30, 2022

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.

Bulbul Bhojpuri May 31, 2022

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_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Bulbul Bhojpuri May 31, 2022

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_ReleaseTEAM_ likes this
Robert Wen_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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!

0 votes
Ofir Zeevi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 20, 2023

There is some additional context and a workaround for connecting to Toolchain in here which may be relevant: https://jira.atlassian.com/browse/JSWCLOUD-23811

0 votes
Naveen Nath Jha February 20, 2023

I got it fixed in just 5 mins. Go to App then go to GitHub configuration settings and Restart Backfill, once the backfill is complete you go and search for your repo and add it quickly. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events