Forums

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

Gitlab and JIRA issue sync

Meghana_H March 5, 2020

As a user, I would like to know Jira issues integartion iwth Gitlab issue, so that when I close my Jira issue, then my issue in Gitlab also get updated and closes issue. I need the sync between the issues. I do not want to use any other external app or tool to establish this sync. I would like to know through existing JIRA APIs can I achieve. Please support.

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2020

Hello @Meghana_H ,

I am not 100% sure this can be done since I've never tried it myself. However, assuming that if an issue is created in Jira will be updated in Jira and viceversa, something similar could be achieved by doing the following:

  1. Create a custom field in Jira to store the Gitlab issue id, and viceversa, one in Gitlab to store the Jira issue key. 
  2. In Jira you create 3 Webhooks that are triggered on issue create, update or deleted and that will call the Gitlab REST API endpoints to create, update and remove issues. 
    Documentation below:
  3. On issue create, the Jira issue key will be recorded to the field created in step #1 in the newly created Gitlab issue.
  4. In Gitlab you create 3 webhooks as well to call the Jira REST API endpoints to create, update and delete issues:
  5. On issue create the Gitlab issue id will be copied to the field created in step #1

 

Also, I know this is not desired, but if nothing else works you might want to review the app  Sync Jira with GitLab available in our marketplace.

 

I hope this helps. 

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events