{"id":33364,"date":"2019-10-31T21:52:11","date_gmt":"2019-10-31T18:52:11","guid":{"rendered":"https:\/\/prohoster.info\/blog\/integratsiya-jira-s-gitlab\/"},"modified":"2019-10-31T21:52:11","modified_gmt":"2019-10-31T18:52:11","slug":"integratsiya-jira-s-gitlab","status":"publish","type":"post","link":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/integratsiya-jira-s-gitlab","title":{"rendered":"Jira Integration with GitLab","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<h3>The goal<\/h3>\n<p>\nWhen committing in git, we mention any task from Jira by name in the comment, after which two things happen:<\/p>\n<ul>\n<li> in GitLab, the task name turns into an active link to it in Jira.<\/li>\n<\/ul>\n<p><\/p>\n<ul>\n<li> In Jira, a comment is added to the task with links to the commit and the user who made it, and the text of the mention is also included. <\/li>\n<\/ul>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h3>Settings<\/h3>\n<p><\/p>\n<ol>\n<li>We need a Jira user with write-level permissions. You can use an existing one, but it's important to remember that all comments in Jira when mentioning tasks from git will come from this user, so it's better to create a new one, let's call it GitLab, and add it to Jira with write permissions on all your projects. <\/li>\n<li>We need a GitLab user with admin rights in each of the projects that we will connect. Integration is set up separately for each project. <\/li>\n<li> In GitLab, we open the project, go to <i>Settings<\/i> -&gt; <i>Integrations<\/i>. Scroll down, we see <i>Project services<\/i> with a long list of services that can be connected.<br \/>\n<img decoding=\"async\" alt=\"Jira Integration with GitLab\" src=\"\/wp-content\/uploads\/2019\/05\/9d5c33a9372adcc87ebda2773fa55fc1.jpg\" style=\"display:block;margin: 0 auto;\" \/>\n<\/li>\n<li>We find Jira in this list, a form appears<br \/>\n<img decoding=\"async\" alt=\"Jira Integration with GitLab\" src=\"\/wp-content\/uploads\/2019\/05\/8f29499989fa633999fd81dc1b7ce217.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<ul>\n<li> We check the box <i>Active<\/i>, to activate the connection.<\/li>\n<\/ul>\n<ul>\n<li> As seen from the form, it is possible to configure the desired behavior for commits and merge requests separately. <\/li>\n<\/ul>\n<ul>\n<li>We enter <i>Web URL<\/i> your company's Jira, for instance 'https:\/\/companyname.atlassian.net' <\/li>\n<\/ul>\n<ul>\n<li><i>Jira API url<\/i> \u2014 fills in if you have another Jira instance; by default, the value will be used. <i>Web URL<\/i>.<\/li>\n<\/ul>\n<ul>\n<li>Fields <i>Username\/Email<\/i> and <i>Password\/Token<\/i> are filled in according to whether you are using Jira Server or Jira Cloud. In the case of Jira Server, you enter the Username and the password of the user under whose name comments will be added. In the case of Jira Cloud, you provide the email and token, which can be obtained. <noindex><a rel=\"nofollow\" href=\"https:\/\/id.atlassian.com\/manage\/api-tokens\">here<\/a><\/noindex>. <\/li>\n<\/ul>\n<ul>\n<li>Field <i>Transition ID(s)<\/i>. If you want, for example, that when mentioning a task, it automatically gets closed, then in this field you need to specify the transition ID to the closed state. This ID can be obtained via the API:\n<pre><code class=\"xml\">https:\/\/companyname.atlassian.net\/rest\/api\/2\/issue\/ISSUENAME-123\/transitions <\/code><\/pre>\n<p>\n where ISSUENAME-123 is the name of any task in the desired state. You will receive a JSON with an array of transitions from which you can take the needed id. <\/li>\n<\/ul>\n<p>\nAs a result in GitLab, in <i>Settings<\/i> -&gt; <i>Integrations<\/i> Jira now has a green indicator:<\/p>\n<p><img decoding=\"async\" alt=\"Jira Integration with GitLab\" src=\"\/wp-content\/uploads\/2019\/05\/a2dc8118476ed2a5d801ec400feab070.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\nand in the project menu, an item will appear <i>Jira<\/i>, which leads to the corresponding project in Jira:<\/p>\n<p><img decoding=\"async\" alt=\"Jira Integration with GitLab\" src=\"\/wp-content\/uploads\/2019\/05\/cff44ee5c151e7df7957e63e4075db73.jpg\" style=\"display:block;margin: 0 auto;\" \/>\n<\/li>\n<\/ol>\n<p><\/p>\n<h3>Usage:<\/h3>\n<p>\nWhen writing a comment to the commit (no matter which tool we use to work with git), we can add the task names in plain text (without quotes or any special characters like @)<\/p>\n<pre><code class=\"xml\">bugfix XPROJECT-123, XPROJECT-124<\/code><\/pre>\n<p>\na comment will drop for the corresponding task:<\/p>\n<p><img decoding=\"async\" alt=\"Jira Integration with GitLab\" src=\"\/wp-content\/uploads\/2019\/05\/6d2f7e5a13b9e00e8b8ba242be99ba34.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nand an active link will appear in GitLab:<\/p>\n<p><img decoding=\"async\" alt=\"Jira Integration with GitLab\" src=\"\/wp-content\/uploads\/2019\/05\/3a24cc8dcd948aa11488c571defeed1d.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>Source: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/451210\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0426\u0435\u043b\u044c \u041f\u0440\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0435 \u0432 git \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u0437\u0430\u0434\u0430\u0447\u0443 \u0438\u0437 Jira \u043f\u043e \u0438\u043c\u0435\u043d\u0438, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u0432\u0435 \u0432\u0435\u0449\u0438: \u0432 GitLab \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0435\u0435 \u0432 Jira \u0432 Jira \u043a \u0437\u0430\u0434\u0430\u0447\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043d\u0430 \u043a\u043e\u043c\u043c\u0438\u0442 \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0435\u0433\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0432\u0448\u0435\u0433\u043e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c \u0442\u0435\u043a\u0441\u0442 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u041d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":25083,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-33364","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0426\u0435\u043b\u044c \u041f\u0440\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0435 \u0432 git \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u0437\u0430\u0434\u0430\u0447\u0443 \u0438\u0437 Jira \u043f\u043e \u0438\u043c\u0435\u043d\u0438, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u0432\u0435 \u0432\u0435\u0449\u0438: \u0432 GitLab \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0435\u0435 \u0432.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/integratsiya-jira-s-gitlab\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f Jira \u0441 GitLab | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0426\u0435\u043b\u044c \u041f\u0440\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0435 \u0432 git \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u0437\u0430\u0434\u0430\u0447\u0443 \u0438\u0437 Jira \u043f\u043e \u0438\u043c\u0435\u043d\u0438, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u0432\u0435 \u0432\u0435\u0449\u0438: \u0432 GitLab \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0435\u0435 \u0432.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/integratsiya-jira-s-gitlab\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T18:52:11+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T18:52:11+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Jira Integration with GitLab | ProHoster","description":"Goal When committing in git, we mention a task from Jira by name in the comment, after which two things happen: in GitLab, the task name turns into an active link to it.","canonical_url":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/integratsiya-jira-s-gitlab","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f Jira \u0441 GitLab | ProHoster","og:description":"\u0426\u0435\u043b\u044c \u041f\u0440\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0435 \u0432 git \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u0437\u0430\u0434\u0430\u0447\u0443 \u0438\u0437 Jira \u043f\u043e \u0438\u043c\u0435\u043d\u0438, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u0432\u0435 \u0432\u0435\u0449\u0438: \u0432 GitLab \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0435\u0435 \u0432.","og:url":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/integratsiya-jira-s-gitlab","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T18:52:11+00:00","article:modified_time":"2019-10-31T18:52:11+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"33364","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-21 14:56:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 11:17:01","updated":"2026-01-21 14:56:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/33364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/comments?post=33364"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/33364\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media\/25083"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media?parent=33364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/categories?post=33364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/tags?post=33364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}