Wednesday, February 9, 2022

GitLab Integration With JIRA

 

GitLab and Jira integration

What is Jira?

Jira is a software application used for issue tracking and project management. The tool, developed by the Australian software company Atlassian, has become widely used by agile development teams to track bugs, stories, epics, and other tasks.


Integration Options :

There are two ways to integrate Jira into Gitlab. You may configure both ways – I have before, but which you choose will entirely depend on how you want your Integration to work and where you want to set up the Integration.

 

The first Integration is set up in Jira using its DVCS Accounts page. This will allow you to use the Developer Panel in your issues and enable you to use Smart Commits to perform actions within your Jira instance. An important caveat that none of the documents mention is for this to work, your Repos on Gitlab must be under groups and not users. Ask me how long that took me to figure out.

 

The Second Integration is set up within Gitlab. This will enable Gitlab to post a comment on Jira issues whenever an Issue ID is posted in any commit, merge request or branch name.

Gitlab’s Jira Integration.

To access it, as an Admin on Gitlab, you need to go to Menu -> Admin -> Settings -> Integrations. Then under “Add an integration,” Find Jira and click on it.





In the GitLab integration setup for Jira, click "enable Jira issues."



Add your proejct key into the GitLab integration setup for Jira.

On this page, first click on “Enable Integration.” Then you will select where you want it to trigger from – either comments or merge requests. This will be where it searches for Issue IDs to run the Integration from.

 

Then select “Enable Comments,” then select how much detail you want in the comments it generates.

 






Give your jira URL in Web Url section and Enter your Username in Username and Email Section

And Enter API Tocken

For API Tocken you first of all you need to create api tocken in jira

So lets move on the JIRA

Steps :-> Click : “Profile” => “Manage your account” => “Security”

And then click on Api Tocken I will Screenshot below









 

Now After Creating API Tocken , give api tocken in GitLab



After Adding API Tocken Click Test Setting Then Your Integraction Part is Successful.

You need to create Board in Jira it’s very simple.

After creating board you need to check  your integration go to your  Git Repository  upload your folder or file then do commit for changes in got repository

And you can got a comment in jira Software Like this:



Troubleshooting:-

If these features do not work as expected, it is likely due to a problem with the way the integration settings were configured.

 

GitLab is unable to comment on a Jira issue

Make sure that the Jira user you set up for the integration has the correct access permission to post comments on a Jira issue and also to transition the issue, if you’d like GitLab to also be able to do so. Jira issue references and update comments will not work if the GitLab issue tracker is disabled.

 

GitLab is unable to close a Jira issue

Make sure the Transition ID you set within the Jira settings matches the one your project needs to close an issue. Make sure that the Jira issue is not already marked as resolved; that is, the Jira issue resolution field is not set. (It should not be struck through in Jira lists.)

Conclusion

GitLab helps teams ship software faster with technology integration options, such as the integration with Jira, that automate tasks, provide visibility into development progress and the greater end-to-end software lifecycle. We recognize that many companies use Jira for Agile project management and our seamless integration brings Jira together with GitLab.

▬▬▬▬▬▬ Connect with me    ▬▬▬▬▬▬ 

Youtube Subscription      ►   https://bit.ly/2LENtS1

Facebook Page:               ► https://www.facebook.com/EasyAWSLearn/

Medium:                          ►  https://techworldwithvijaypatel.mediu...

Dev:                                 ►  https://dev.to/easyawslearn

Telegram Channel:                ►   https://t.me/devtul

2 comments:

  1. Good Post! Thank you so much for sharing this pretty post, it was so nice to read and useful to improve my knowledge as updated one, keep blogging.

    AWS Certification Training in Electronic City

    ReplyDelete

  2. This was the type of article that enlightened me the entire time, and I appreciate it. This is going to be exciting and enjoyable to read. It's because of it. Check it out if you're looking for something a little more thrilling.
    visit us 

    ReplyDelete

Wireless Security Configuration: Protect Your Network Now!

Introduction: In today’s connected world, wireless networks are as common as smartphones, and they’re often the gateway to our personal, pr...