<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Python Archives - Techno Whisp</title>
	<atom:link href="https://technowhisp.com/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>https://technowhisp.com/category/python/</link>
	<description>Whispering Technology</description>
	<lastBuildDate>Mon, 30 Jul 2018 22:36:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.9</generator>
	<item>
		<title>JIRA to Tableau in two lines of Python</title>
		<link>https://technowhisp.com/jira-to-tableau-in-two-lines-of-python/</link>
					<comments>https://technowhisp.com/jira-to-tableau-in-two-lines-of-python/#comments</comments>
		
		<dc:creator><![CDATA[Jose Cherian]]></dc:creator>
		<pubDate>Mon, 30 Jul 2018 21:40:31 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Tableau]]></category>
		<guid isPermaLink="false">http://technowhisp.com/?p=572</guid>

					<description><![CDATA[<p>Recently, I had to create one  status dashboard for a JIRA project.  Tableau does not connect to JIRA out of the box and you need to purchase a connector to get  this functionality.  Since JIRA has a  REST API, my initial instinct was to build a web data connector. But  it turns out that you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://technowhisp.com/jira-to-tableau-in-two-lines-of-python/">JIRA to Tableau in two lines of Python</a> appeared first on <a rel="nofollow" href="https://technowhisp.com">Techno Whisp</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Recently, I had to create one  status dashboard for a JIRA project.  Tableau does not connect to JIRA out of the box and you need to purchase a connector to get  this functionality.  Since JIRA has a  REST API, my initial instinct was to build a web data connector. But  it turns out that you can get the JIRA data to Tableau in two lines of python code.</p>
<p>I ended up with writing a python script that runs every hour and dump the JIRA data to a json file. Tableau can consume json file easily and it works for both JIRA cloud and server. Here is the essence of my script.</p>
<pre class="lang:python decode:true ">from jira import JIRA
import json
import sys
jira = JIRA(server="yourserver",
            auth=('uid','pwd'))
# Get all issues in project
issues = jira.search_issues('project=yourproject',maxResults=sys.maxsize)
# Keep only raw data
cleaned_list = [issue.raw for issue in issues]
# Dump cleaned list as a json file
with open('result.json','w')as fp:
    json.dump(cleaned_list,fp)
    
</pre>
<p>I know what you are thinking; this is not two lines! Well, it can be written in two lines if you dont care about code styling or PEP-8 compliance.</p>
<pre class="lang:python decode:true ">import jira,json,sys
with open('result.json','w')as fp:json.dump([issue.raw for issue in jira.JIRA(server="yourserver",auth=('uid','pwd')).search_issues('project=yourproject',maxResults=sys.maxsize)],fp)
    
</pre>
<p>Remember to select all schema levels when making the connection in Tableau.</p>
<p><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-582" src="http://josecherian.webfactional.com/technowhisp/wp-content/uploads/2018/07/schema_selection.png" alt="" width="579" height="706" srcset="https://technowhisp.com/wp-content/uploads/2018/07/schema_selection.png 579w, https://technowhisp.com/wp-content/uploads/2018/07/schema_selection-246x300.png 246w" sizes="(max-width: 579px) 100vw, 579px" />.</p>
<p>Here is a preview of the available fields after creating the connection.</p>
<p><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-581" src="http://josecherian.webfactional.com/technowhisp/wp-content/uploads/2018/07/data_souce.png" alt="" width="337" height="674" srcset="https://technowhisp.com/wp-content/uploads/2018/07/data_souce.png 337w, https://technowhisp.com/wp-content/uploads/2018/07/data_souce-150x300.png 150w" sizes="(max-width: 337px) 100vw, 337px" /></p>
<p>The post <a rel="nofollow" href="https://technowhisp.com/jira-to-tableau-in-two-lines-of-python/">JIRA to Tableau in two lines of Python</a> appeared first on <a rel="nofollow" href="https://technowhisp.com">Techno Whisp</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://technowhisp.com/jira-to-tableau-in-two-lines-of-python/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 

Served from: technowhisp.com @ 2026-06-22 23:59:25 by W3 Total Cache
-->