{"id":52659,"date":"2025-03-12T14:00:00","date_gmt":"2025-03-12T13:00:00","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=52659"},"modified":"2025-06-03T22:02:36","modified_gmt":"2025-06-03T20:02:36","slug":"extraccion-de-datos-de-jira-con-google-apps-script","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/es\/blog\/google-sheets-features\/data-extraction-from-jira-with-google-apps-script\/","title":{"rendered":"Automatizaci\u00f3n de la extracci\u00f3n de datos de JIRA con Google Apps Script"},"content":{"rendered":"\n[et_pb_section fb_built=&#8221;1&#8243; theme_builder_area=&#8221;post_content&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221;][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; type=&#8221;4_4&#8243; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<blockquote>\n<p><strong>Note:<\/strong> This post was originally published in our community forum.<\/p>\n<\/blockquote>\n<p>Leveraging Google Apps Script to pull data from JIRA into Google Sheets is a powerful technique for teams looking to automate their workflow and enhance project management. This integration simplifies tracking issues, tasks, and progress directly within a familiar spreadsheet environment.<\/p>\n<h2>Quick setup guide<\/h2>\n<p>1. Create a Google Sheet as your data repository.<\/p>\n<p>2. Open Script Editor from Google Sheets to write custom functions.<\/p>\n<p>3. Utilize JIRA\u2019s API within your script to fetch data such as issue details, statuses, and updates.<\/p>\n<p>4. Write a Script in Apps Script to parse and insert the JIRA data into the Google Sheet.<\/p>\n<p>5. Set Triggers for automatic updates, ensuring your data remains fresh without manual intervention.<\/p>\n<h2><strong>Benefits at a glance<\/strong><\/h2>\n<ul>\n<li>Streamlined Project Tracking: Centralize your JIRA data in Google Sheets, making it easier to monitor project timelines, task assignments, and statuses.<\/li>\n<\/ul>\n<ul>\n<li>Improved Data Analysis: With data in Sheets, leverage built-in tools for deeper insights and reporting, identifying bottlenecks or areas for improvement.<\/li>\n<\/ul>\n<ul>\n<li>Enhanced Team Collaboration: Share your data-rich Google Sheets with team members, fostering a collaborative environment where information is transparent and accessible.<\/li>\n<\/ul>\n<p>This approach not only saves time but also bridges the gap between complex project management data and actionable insights, leading to more informed decision-making and streamlined operations.<\/p>\n<p>Here a code sample for google app script<\/p>\n<blockquote>\n<p><strong>Note:<\/strong> Please replace<span>\u00a0<\/span><strong><code>yourDomain<\/code><\/strong>,<span>\u00a0<\/span><strong><code>yourEmail<\/code><\/strong>,<span>\u00a0<\/span><strong><code>yourApiToken<\/code><\/strong>, and<span>\u00a0<\/span><strong><code>yourProjectKey<\/code><\/strong><span>\u00a0<\/span>with your actual JIRA domain, email, API token, and project key. API tokens can be generated from your Atlassian account security settings.<\/p>\n<\/blockquote>\n<pre><code data-highlighted=\"yes\" class=\"hljs language-javascript\"><span class=\"hljs-keyword\">function<\/span> <span class=\"hljs-title function_\">fetchJiraIssues<\/span>(<span class=\"hljs-params\"><\/span>) {\n\n  <span class=\"hljs-keyword\">var<\/span> sheet = <span class=\"hljs-title class_\">SpreadsheetApp<\/span>.<span class=\"hljs-title function_\">getActiveSpreadsheet<\/span>().<span class=\"hljs-title function_\">getSheetByName<\/span>(<span class=\"hljs-string\">\"Sheet1\"<\/span>);\n\n  <span class=\"hljs-keyword\">var<\/span> url = <span class=\"hljs-string\">'https:\/\/yourDomain.atlassian.net\/rest\/api\/3\/search?jql=project=yourProjectKey'<\/span>;\n\n  \n\n  <span class=\"hljs-keyword\">var<\/span> options = {\n\n    <span class=\"hljs-string\">'method'<\/span> : <span class=\"hljs-string\">'get'<\/span>,\n\n    <span class=\"hljs-string\">'contentType'<\/span>: <span class=\"hljs-string\">'application\/json'<\/span>,\n\n    <span class=\"hljs-comment\">\/\/ Replace yourEmail and yourApiToken with your actual email and API token<\/span>\n\n    <span class=\"hljs-string\">'headers'<\/span>: {\n\n        <span class=\"hljs-string\">'Authorization'<\/span>: <span class=\"hljs-string\">'Basic '<\/span> + <span class=\"hljs-title class_\">Utilities<\/span>.<span class=\"hljs-title function_\">base64Encode<\/span>(<span class=\"hljs-string\">'yourEmail:yourApiToken'<\/span>)\n\n    },\n\n    <span class=\"hljs-string\">'muteHttpExceptions'<\/span>: <span class=\"hljs-literal\">true<\/span>\n\n  };\n\n  \n\n  <span class=\"hljs-keyword\">var<\/span> response = <span class=\"hljs-title class_\">UrlFetchApp<\/span>.<span class=\"hljs-title function_\">fetch<\/span>(url, options);\n\n  <span class=\"hljs-keyword\">var<\/span> jsonResponse = <span class=\"hljs-title class_\">JSON<\/span>.<span class=\"hljs-title function_\">parse<\/span>(response.<span class=\"hljs-title function_\">getContentText<\/span>());\n\n  \n\n  <span class=\"hljs-comment\">\/\/ Clear existing content<\/span>\n\n  sheet.<span class=\"hljs-title function_\">clearContents<\/span>();\n\n  \n\n  <span class=\"hljs-comment\">\/\/ Set headers<\/span>\n\n  sheet.<span class=\"hljs-title function_\">appendRow<\/span>([<span class=\"hljs-string\">\"Issue Key\"<\/span>, <span class=\"hljs-string\">\"Summary\"<\/span>]);\n\n  \n\n  <span class=\"hljs-comment\">\/\/ Loop through each issue and append data to the sheet<\/span>\n\n  jsonResponse.<span class=\"hljs-property\">issues<\/span>.<span class=\"hljs-title function_\">forEach<\/span>(<span class=\"hljs-keyword\">function<\/span>(<span class=\"hljs-params\">issue<\/span>) {\n\n    sheet.<span class=\"hljs-title function_\">appendRow<\/span>([issue.<span class=\"hljs-property\">key<\/span>, issue.<span class=\"hljs-property\">fields<\/span>.<span class=\"hljs-property\">summary<\/span>]);\n\n  });\n\n}<\/code><\/pre>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"<p>Note: This post was originally published in our community forum. Leveraging Google Apps Script to pull data from JIRA into Google Sheets is a powerful technique for teams looking to automate their workflow and enhance project management. This integration simplifies tracking issues, tasks, and progress directly within a familiar spreadsheet environment. Quick setup guide 1. [&hellip;]<\/p>\n","protected":false},"author":49,"featured_media":44470,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[37],"tags":[],"class_list":["post-52659","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-features"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/52659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/users\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/comments?post=52659"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/52659\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media\/44470"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media?parent=52659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/categories?post=52659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/tags?post=52659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}